projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e14c9
)
NFSv4: fix getacl head length estimation
author
J. Bruce Fields
<
[email protected]
>
Thu, 23 Feb 2017 19:53:39 +0000
(14:53 -0500)
committer
Anna Schumaker
<
[email protected]
>
Thu, 23 Feb 2017 22:23:32 +0000
(17:23 -0500)
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 <
[email protected]
>
Cc:
[email protected]
Signed-off-by: J. Bruce Fields <
[email protected]
>
Signed-off-by: Anna Schumaker <
[email protected]
>
fs/nfs/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4xdr.c
b/fs/nfs/nfs4xdr.c
index 3268a23935123204f75f0d3e61ec4bb1c9941818..f0369e36275341404db0684aebb4e9bdba273205 100644
(file)
--- 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,