summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields2014-02-26 23:00:38 +0100
committerJ. Bruce Fields2014-05-28 20:52:35 +0200
commitd3f627c815b6eb5f6be388100617c36823d661c5 (patch)
tree55d53651423a044c1219f05b2515f6ae86605dd7 /fs/nfsd/nfs4proc.c
parentnfsd4: use xdr_reserve_space in attribute encoding (diff)
downloadkernel-qcow2-linux-d3f627c815b6eb5f6be388100617c36823d661c5.tar.gz
kernel-qcow2-linux-d3f627c815b6eb5f6be388100617c36823d661c5.tar.xz
kernel-qcow2-linux-d3f627c815b6eb5f6be388100617c36823d661c5.zip
nfsd4: use xdr_stream throughout compound encoding
Note this makes ADJUST_ARGS useless; we'll remove it in the following patch. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 41c7c0a3ddd0..109b5a84b548 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1284,7 +1284,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
svcxdr_init_encode(rqstp, resp);
resp->tagp = resp->xdr.p;
/* reserve space for: taglen, tag, and opcnt */
- resp->xdr.p += 2 + XDR_QUADLEN(args->taglen);
+ xdr_reserve_space(&resp->xdr, 8 + args->taglen);
resp->taglen = args->taglen;
resp->tag = args->tag;
resp->opcnt = 0;