@@ -813,9 +813,8 @@ nfs3svc_decode_commitargs(struct svc_rqst *rqstp, struct xdr_stream *xdr)
813813
814814/* GETATTR */
815815int
816- nfs3svc_encode_getattrres (struct svc_rqst * rqstp , __be32 * p )
816+ nfs3svc_encode_getattrres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
817817{
818- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
819818 struct nfsd3_attrstat * resp = rqstp -> rq_resp ;
820819
821820 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -833,19 +832,18 @@ nfs3svc_encode_getattrres(struct svc_rqst *rqstp, __be32 *p)
833832
834833/* SETATTR, REMOVE, RMDIR */
835834int
836- nfs3svc_encode_wccstat (struct svc_rqst * rqstp , __be32 * p )
835+ nfs3svc_encode_wccstat (struct svc_rqst * rqstp , struct xdr_stream * xdr )
837836{
838- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
839837 struct nfsd3_attrstat * resp = rqstp -> rq_resp ;
840838
841839 return svcxdr_encode_nfsstat3 (xdr , resp -> status ) &&
842840 svcxdr_encode_wcc_data (rqstp , xdr , & resp -> fh );
843841}
844842
845843/* LOOKUP */
846- int nfs3svc_encode_lookupres (struct svc_rqst * rqstp , __be32 * p )
844+ int
845+ nfs3svc_encode_lookupres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
847846{
848- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
849847 struct nfsd3_diropres * resp = rqstp -> rq_resp ;
850848
851849 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -869,9 +867,8 @@ int nfs3svc_encode_lookupres(struct svc_rqst *rqstp, __be32 *p)
869867
870868/* ACCESS */
871869int
872- nfs3svc_encode_accessres (struct svc_rqst * rqstp , __be32 * p )
870+ nfs3svc_encode_accessres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
873871{
874- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
875872 struct nfsd3_accessres * resp = rqstp -> rq_resp ;
876873
877874 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -893,9 +890,8 @@ nfs3svc_encode_accessres(struct svc_rqst *rqstp, __be32 *p)
893890
894891/* READLINK */
895892int
896- nfs3svc_encode_readlinkres (struct svc_rqst * rqstp , __be32 * p )
893+ nfs3svc_encode_readlinkres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
897894{
898- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
899895 struct nfsd3_readlinkres * resp = rqstp -> rq_resp ;
900896 struct kvec * head = rqstp -> rq_res .head ;
901897
@@ -921,9 +917,8 @@ nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p)
921917
922918/* READ */
923919int
924- nfs3svc_encode_readres (struct svc_rqst * rqstp , __be32 * p )
920+ nfs3svc_encode_readres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
925921{
926- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
927922 struct nfsd3_readres * resp = rqstp -> rq_resp ;
928923 struct kvec * head = rqstp -> rq_res .head ;
929924
@@ -954,9 +949,8 @@ nfs3svc_encode_readres(struct svc_rqst *rqstp, __be32 *p)
954949
955950/* WRITE */
956951int
957- nfs3svc_encode_writeres (struct svc_rqst * rqstp , __be32 * p )
952+ nfs3svc_encode_writeres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
958953{
959- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
960954 struct nfsd3_writeres * resp = rqstp -> rq_resp ;
961955
962956 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -982,9 +976,8 @@ nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p)
982976
983977/* CREATE, MKDIR, SYMLINK, MKNOD */
984978int
985- nfs3svc_encode_createres (struct svc_rqst * rqstp , __be32 * p )
979+ nfs3svc_encode_createres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
986980{
987- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
988981 struct nfsd3_diropres * resp = rqstp -> rq_resp ;
989982
990983 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -1008,9 +1001,8 @@ nfs3svc_encode_createres(struct svc_rqst *rqstp, __be32 *p)
10081001
10091002/* RENAME */
10101003int
1011- nfs3svc_encode_renameres (struct svc_rqst * rqstp , __be32 * p )
1004+ nfs3svc_encode_renameres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
10121005{
1013- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
10141006 struct nfsd3_renameres * resp = rqstp -> rq_resp ;
10151007
10161008 return svcxdr_encode_nfsstat3 (xdr , resp -> status ) &&
@@ -1020,9 +1012,8 @@ nfs3svc_encode_renameres(struct svc_rqst *rqstp, __be32 *p)
10201012
10211013/* LINK */
10221014int
1023- nfs3svc_encode_linkres (struct svc_rqst * rqstp , __be32 * p )
1015+ nfs3svc_encode_linkres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
10241016{
1025- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
10261017 struct nfsd3_linkres * resp = rqstp -> rq_resp ;
10271018
10281019 return svcxdr_encode_nfsstat3 (xdr , resp -> status ) &&
@@ -1032,9 +1023,8 @@ nfs3svc_encode_linkres(struct svc_rqst *rqstp, __be32 *p)
10321023
10331024/* READDIR */
10341025int
1035- nfs3svc_encode_readdirres (struct svc_rqst * rqstp , __be32 * p )
1026+ nfs3svc_encode_readdirres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
10361027{
1037- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
10381028 struct nfsd3_readdirres * resp = rqstp -> rq_resp ;
10391029 struct xdr_buf * dirlist = & resp -> dirlist ;
10401030
@@ -1286,9 +1276,8 @@ svcxdr_encode_fsstat3resok(struct xdr_stream *xdr,
12861276
12871277/* FSSTAT */
12881278int
1289- nfs3svc_encode_fsstatres (struct svc_rqst * rqstp , __be32 * p )
1279+ nfs3svc_encode_fsstatres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
12901280{
1291- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
12921281 struct nfsd3_fsstatres * resp = rqstp -> rq_resp ;
12931282
12941283 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -1333,9 +1322,8 @@ svcxdr_encode_fsinfo3resok(struct xdr_stream *xdr,
13331322
13341323/* FSINFO */
13351324int
1336- nfs3svc_encode_fsinfores (struct svc_rqst * rqstp , __be32 * p )
1325+ nfs3svc_encode_fsinfores (struct svc_rqst * rqstp , struct xdr_stream * xdr )
13371326{
1338- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
13391327 struct nfsd3_fsinfores * resp = rqstp -> rq_resp ;
13401328
13411329 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -1376,9 +1364,8 @@ svcxdr_encode_pathconf3resok(struct xdr_stream *xdr,
13761364
13771365/* PATHCONF */
13781366int
1379- nfs3svc_encode_pathconfres (struct svc_rqst * rqstp , __be32 * p )
1367+ nfs3svc_encode_pathconfres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
13801368{
1381- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
13821369 struct nfsd3_pathconfres * resp = rqstp -> rq_resp ;
13831370
13841371 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
@@ -1400,9 +1387,8 @@ nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, __be32 *p)
14001387
14011388/* COMMIT */
14021389int
1403- nfs3svc_encode_commitres (struct svc_rqst * rqstp , __be32 * p )
1390+ nfs3svc_encode_commitres (struct svc_rqst * rqstp , struct xdr_stream * xdr )
14041391{
1405- struct xdr_stream * xdr = & rqstp -> rq_res_stream ;
14061392 struct nfsd3_commitres * resp = rqstp -> rq_resp ;
14071393
14081394 if (!svcxdr_encode_nfsstat3 (xdr , resp -> status ))
0 commit comments