summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2017-02-23 14:53:39 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-02-23 17:23:32 -0500
commit6682c14bbe505a8b912c57faf544f866777ee48d (patch)
tree49bd85d64ec01f6cae762f45c97ccca13f3a55fd
parenta5e14c9376871ee74fe93fdcb380c5d54eaa2d43 (diff)
downloadlinux-stable-6682c14bbe505a8b912c57faf544f866777ee48d.tar.gz
linux-stable-6682c14bbe505a8b912c57faf544f866777ee48d.tar.bz2
linux-stable-6682c14bbe505a8b912c57faf544f866777ee48d.zip
NFSv4: fix getacl head length estimation
Bitmap and attrlen follow immediately after the op reply header. This was an oversight from commit bf118a342f. Consequences of this are just minor efficiency (extra calls to xdr_shrink_bufhead). Fixes: bf118a342f10 "NFSv4: include bitmap in nfsv4 get acl data" Reviewed-by: Kinglong Mee <kinglongmee@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 3268a2393512..f0369e362753 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -2514,7 +2514,7 @@ static void nfs4_xdr_enc_getacl(struct rpc_rqst *req, struct xdr_stream *xdr,
encode_compound_hdr(xdr, req, &hdr);
encode_sequence(xdr, &args->seq_args, &hdr);
encode_putfh(xdr, args->fh, &hdr);
- replen = hdr.replen + op_decode_hdr_maxsz + 1;
+ replen = hdr.replen + op_decode_hdr_maxsz;
encode_getattr_two(xdr, FATTR4_WORD0_ACL, 0, &hdr);
xdr_inline_pages(&req->rq_rcv_buf, replen << 2,