Lines Matching refs:rqstp
210 svcxdr_decode_sattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr,
234 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), uid);
245 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), gid);
330 svcxdr_decode_devicedata3(struct svc_rqst *rqstp, struct xdr_stream *xdr,
333 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs) &&
338 svcxdr_encode_fattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr,
341 struct user_namespace *userns = nfsd_user_namespace(rqstp);
420 * @rqstp: Context of a completed RPC transaction
429 svcxdr_encode_post_op_attr(struct svc_rqst *rqstp, struct xdr_stream *xdr,
448 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &stat))
461 svcxdr_encode_wcc_data(struct svc_rqst *rqstp, struct xdr_stream *xdr,
476 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &fhp->fh_post_attr))
484 if (!svcxdr_encode_post_op_attr(rqstp, xdr, fhp))
495 nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
497 struct nfsd_fhandle *args = rqstp->rq_argp;
503 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
505 struct nfsd3_sattrargs *args = rqstp->rq_argp;
508 svcxdr_decode_sattr3(rqstp, xdr, &args->attrs) &&
513 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
515 struct nfsd3_diropargs *args = rqstp->rq_argp;
521 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
523 struct nfsd3_accessargs *args = rqstp->rq_argp;
534 nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
536 struct nfsd3_readargs *args = rqstp->rq_argp;
549 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
551 struct nfsd3_writeargs *args = rqstp->rq_argp;
552 u32 max_blocksize = svc_max_payload(rqstp);
579 nfs3svc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
581 struct nfsd3_createargs *args = rqstp->rq_argp;
590 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs);
603 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
605 struct nfsd3_createargs *args = rqstp->rq_argp;
609 svcxdr_decode_sattr3(rqstp, xdr, &args->attrs);
613 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
615 struct nfsd3_symlinkargs *args = rqstp->rq_argp;
616 struct kvec *head = rqstp->rq_arg.head;
620 if (!svcxdr_decode_sattr3(rqstp, xdr, &args->attrs))
632 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
634 struct nfsd3_mknodargs *args = rqstp->rq_argp;
643 return svcxdr_decode_devicedata3(rqstp, xdr, args);
646 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs);
660 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
662 struct nfsd3_renameargs *args = rqstp->rq_argp;
671 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
673 struct nfsd3_linkargs *args = rqstp->rq_argp;
681 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
683 struct nfsd3_readdirargs *args = rqstp->rq_argp;
699 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
701 struct nfsd3_readdirargs *args = rqstp->rq_argp;
721 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
723 struct nfsd3_commitargs *args = rqstp->rq_argp;
741 nfs3svc_encode_getattrres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
743 struct nfsd3_attrstat *resp = rqstp->rq_resp;
750 if (!svcxdr_encode_fattr3(rqstp, xdr, &resp->fh, &resp->stat))
760 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, struct xdr_stream *xdr)
762 struct nfsd3_attrstat *resp = rqstp->rq_resp;
765 svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh);
770 nfs3svc_encode_lookupres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
772 struct nfsd3_diropres *resp = rqstp->rq_resp;
780 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
782 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->dirfh))
786 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->dirfh))
795 nfs3svc_encode_accessres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
797 struct nfsd3_accessres *resp = rqstp->rq_resp;
803 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
809 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
818 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
820 struct nfsd3_readlinkres *resp = rqstp->rq_resp;
821 struct kvec *head = rqstp->rq_res.head;
827 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
831 svcxdr_encode_opaque_pages(rqstp, xdr, resp->pages, 0,
833 if (svc_encode_result_payload(rqstp, head->iov_len, resp->len) < 0)
837 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
846 nfs3svc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
848 struct nfsd3_readres *resp = rqstp->rq_resp;
849 struct kvec *head = rqstp->rq_res.head;
855 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
863 svcxdr_encode_opaque_pages(rqstp, xdr, resp->pages,
864 rqstp->rq_res.page_base,
866 if (svc_encode_result_payload(rqstp, head->iov_len, resp->count) < 0)
870 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
879 nfs3svc_encode_writeres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
881 struct nfsd3_writeres *resp = rqstp->rq_resp;
887 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh))
897 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh))
906 nfs3svc_encode_createres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
908 struct nfsd3_diropres *resp = rqstp->rq_resp;
916 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
918 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->dirfh))
922 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->dirfh))
931 nfs3svc_encode_renameres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
933 struct nfsd3_renameres *resp = rqstp->rq_resp;
936 svcxdr_encode_wcc_data(rqstp, xdr, &resp->ffh) &&
937 svcxdr_encode_wcc_data(rqstp, xdr, &resp->tfh);
942 nfs3svc_encode_linkres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
944 struct nfsd3_linkres *resp = rqstp->rq_resp;
947 svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh) &&
948 svcxdr_encode_wcc_data(rqstp, xdr, &resp->tfh);
953 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
955 struct nfsd3_readdirres *resp = rqstp->rq_resp;
962 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
966 svcxdr_encode_opaque_pages(rqstp, xdr, dirlist->pages, 0,
975 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh))
1119 if (!svcxdr_encode_post_op_attr(resp->rqstp, xdr, fhp))
1207 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
1209 struct nfsd3_fsstatres *resp = rqstp->rq_resp;
1215 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh))
1221 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh))
1253 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, struct xdr_stream *xdr)
1255 struct nfsd3_fsinfores *resp = rqstp->rq_resp;
1261 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh))
1267 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh))
1295 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
1297 struct nfsd3_pathconfres *resp = rqstp->rq_resp;
1303 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh))
1309 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh))
1318 nfs3svc_encode_commitres(struct svc_rqst *rqstp, struct xdr_stream *xdr)
1320 struct nfsd3_commitres *resp = rqstp->rq_resp;
1326 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh))
1332 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh))
1343 nfs3svc_release_fhandle(struct svc_rqst *rqstp)
1345 struct nfsd3_attrstat *resp = rqstp->rq_resp;
1351 nfs3svc_release_fhandle2(struct svc_rqst *rqstp)
1353 struct nfsd3_fhandle_pair *resp = rqstp->rq_resp;