Lines Matching refs:rqstp
210 svcxdr_decode_sattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_decode_sattr3() argument
234 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), uid); in svcxdr_decode_sattr3()
245 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), gid); in svcxdr_decode_sattr3()
330 svcxdr_decode_devicedata3(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_decode_devicedata3() argument
333 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs) && in svcxdr_decode_devicedata3()
338 svcxdr_encode_fattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_encode_fattr3() argument
341 struct user_namespace *userns = nfsd_user_namespace(rqstp); in svcxdr_encode_fattr3()
429 svcxdr_encode_post_op_attr(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_encode_post_op_attr() argument
448 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &stat)) in svcxdr_encode_post_op_attr()
461 svcxdr_encode_wcc_data(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_encode_wcc_data() argument
476 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &fhp->fh_post_attr)) in svcxdr_encode_wcc_data()
484 if (!svcxdr_encode_post_op_attr(rqstp, xdr, fhp)) in svcxdr_encode_wcc_data()
560 nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_fhandleargs() argument
562 struct nfsd_fhandle *args = rqstp->rq_argp; in nfs3svc_decode_fhandleargs()
568 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_sattrargs() argument
570 struct nfsd3_sattrargs *args = rqstp->rq_argp; in nfs3svc_decode_sattrargs()
573 svcxdr_decode_sattr3(rqstp, xdr, &args->attrs) && in nfs3svc_decode_sattrargs()
578 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_diropargs() argument
580 struct nfsd3_diropargs *args = rqstp->rq_argp; in nfs3svc_decode_diropargs()
586 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_accessargs() argument
588 struct nfsd3_accessargs *args = rqstp->rq_argp; in nfs3svc_decode_accessargs()
599 nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_readargs() argument
601 struct nfsd3_readargs *args = rqstp->rq_argp; in nfs3svc_decode_readargs()
614 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_writeargs() argument
616 struct nfsd3_writeargs *args = rqstp->rq_argp; in nfs3svc_decode_writeargs()
617 u32 max_blocksize = svc_max_payload(rqstp); in nfs3svc_decode_writeargs()
646 nfs3svc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_createargs() argument
648 struct nfsd3_createargs *args = rqstp->rq_argp; in nfs3svc_decode_createargs()
657 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs); in nfs3svc_decode_createargs()
670 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_mkdirargs() argument
672 struct nfsd3_createargs *args = rqstp->rq_argp; in nfs3svc_decode_mkdirargs()
676 svcxdr_decode_sattr3(rqstp, xdr, &args->attrs); in nfs3svc_decode_mkdirargs()
680 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_symlinkargs() argument
682 struct nfsd3_symlinkargs *args = rqstp->rq_argp; in nfs3svc_decode_symlinkargs()
683 struct kvec *head = rqstp->rq_arg.head; in nfs3svc_decode_symlinkargs()
684 struct kvec *tail = rqstp->rq_arg.tail; in nfs3svc_decode_symlinkargs()
689 if (!svcxdr_decode_sattr3(rqstp, xdr, &args->attrs)) in nfs3svc_decode_symlinkargs()
695 remaining = head->iov_len + rqstp->rq_arg.page_len + tail->iov_len; in nfs3svc_decode_symlinkargs()
707 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_mknodargs() argument
709 struct nfsd3_mknodargs *args = rqstp->rq_argp; in nfs3svc_decode_mknodargs()
718 return svcxdr_decode_devicedata3(rqstp, xdr, args); in nfs3svc_decode_mknodargs()
721 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs); in nfs3svc_decode_mknodargs()
735 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_renameargs() argument
737 struct nfsd3_renameargs *args = rqstp->rq_argp; in nfs3svc_decode_renameargs()
746 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_linkargs() argument
748 struct nfsd3_linkargs *args = rqstp->rq_argp; in nfs3svc_decode_linkargs()
756 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_readdirargs() argument
758 struct nfsd3_readdirargs *args = rqstp->rq_argp; in nfs3svc_decode_readdirargs()
774 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_readdirplusargs() argument
776 struct nfsd3_readdirargs *args = rqstp->rq_argp; in nfs3svc_decode_readdirplusargs()
796 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_commitargs() argument
798 struct nfsd3_commitargs *args = rqstp->rq_argp; in nfs3svc_decode_commitargs()
816 nfs3svc_encode_getattrres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_getattrres() argument
818 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_getattrres()
825 if (!svcxdr_encode_fattr3(rqstp, xdr, &resp->fh, &resp->stat)) in nfs3svc_encode_getattrres()
835 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_wccstat() argument
837 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_encode_wccstat()
840 svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh); in nfs3svc_encode_wccstat()
845 nfs3svc_encode_lookupres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_lookupres() argument
847 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_lookupres()
855 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_lookupres()
857 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->dirfh)) in nfs3svc_encode_lookupres()
861 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->dirfh)) in nfs3svc_encode_lookupres()
870 nfs3svc_encode_accessres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_accessres() argument
872 struct nfsd3_accessres *resp = rqstp->rq_resp; in nfs3svc_encode_accessres()
878 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_accessres()
884 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_accessres()
893 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_readlinkres() argument
895 struct nfsd3_readlinkres *resp = rqstp->rq_resp; in nfs3svc_encode_readlinkres()
896 struct kvec *head = rqstp->rq_res.head; in nfs3svc_encode_readlinkres()
902 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_readlinkres()
907 if (svc_encode_result_payload(rqstp, head->iov_len, resp->len) < 0) in nfs3svc_encode_readlinkres()
911 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_readlinkres()
920 nfs3svc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_readres() argument
922 struct nfsd3_readres *resp = rqstp->rq_resp; in nfs3svc_encode_readres()
923 struct kvec *head = rqstp->rq_res.head; in nfs3svc_encode_readres()
929 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_readres()
937 xdr_write_pages(xdr, resp->pages, rqstp->rq_res.page_base, in nfs3svc_encode_readres()
939 if (svc_encode_result_payload(rqstp, head->iov_len, resp->count) < 0) in nfs3svc_encode_readres()
943 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_readres()
952 nfs3svc_encode_writeres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_writeres() argument
954 struct nfsd3_writeres *resp = rqstp->rq_resp; in nfs3svc_encode_writeres()
960 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh)) in nfs3svc_encode_writeres()
970 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh)) in nfs3svc_encode_writeres()
979 nfs3svc_encode_createres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_createres() argument
981 struct nfsd3_diropres *resp = rqstp->rq_resp; in nfs3svc_encode_createres()
989 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_createres()
991 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->dirfh)) in nfs3svc_encode_createres()
995 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->dirfh)) in nfs3svc_encode_createres()
1004 nfs3svc_encode_renameres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_renameres() argument
1006 struct nfsd3_renameres *resp = rqstp->rq_resp; in nfs3svc_encode_renameres()
1009 svcxdr_encode_wcc_data(rqstp, xdr, &resp->ffh) && in nfs3svc_encode_renameres()
1010 svcxdr_encode_wcc_data(rqstp, xdr, &resp->tfh); in nfs3svc_encode_renameres()
1015 nfs3svc_encode_linkres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_linkres() argument
1017 struct nfsd3_linkres *resp = rqstp->rq_resp; in nfs3svc_encode_linkres()
1020 svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh) && in nfs3svc_encode_linkres()
1021 svcxdr_encode_wcc_data(rqstp, xdr, &resp->tfh); in nfs3svc_encode_linkres()
1026 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_readdirres() argument
1028 struct nfsd3_readdirres *resp = rqstp->rq_resp; in nfs3svc_encode_readdirres()
1035 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_readdirres()
1047 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &resp->fh)) in nfs3svc_encode_readdirres()
1191 if (!svcxdr_encode_post_op_attr(resp->rqstp, xdr, fhp)) in svcxdr_encode_entry3_plus()
1279 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_fsstatres() argument
1281 struct nfsd3_fsstatres *resp = rqstp->rq_resp; in nfs3svc_encode_fsstatres()
1287 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh)) in nfs3svc_encode_fsstatres()
1293 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh)) in nfs3svc_encode_fsstatres()
1325 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_fsinfores() argument
1327 struct nfsd3_fsinfores *resp = rqstp->rq_resp; in nfs3svc_encode_fsinfores()
1333 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh)) in nfs3svc_encode_fsinfores()
1339 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh)) in nfs3svc_encode_fsinfores()
1367 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_pathconfres() argument
1369 struct nfsd3_pathconfres *resp = rqstp->rq_resp; in nfs3svc_encode_pathconfres()
1375 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh)) in nfs3svc_encode_pathconfres()
1381 if (!svcxdr_encode_post_op_attr(rqstp, xdr, &nfs3svc_null_fh)) in nfs3svc_encode_pathconfres()
1390 nfs3svc_encode_commitres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_encode_commitres() argument
1392 struct nfsd3_commitres *resp = rqstp->rq_resp; in nfs3svc_encode_commitres()
1398 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh)) in nfs3svc_encode_commitres()
1404 if (!svcxdr_encode_wcc_data(rqstp, xdr, &resp->fh)) in nfs3svc_encode_commitres()
1415 nfs3svc_release_fhandle(struct svc_rqst *rqstp) in nfs3svc_release_fhandle() argument
1417 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfs3svc_release_fhandle()
1423 nfs3svc_release_fhandle2(struct svc_rqst *rqstp) in nfs3svc_release_fhandle2() argument
1425 struct nfsd3_fhandle_pair *resp = rqstp->rq_resp; in nfs3svc_release_fhandle2()