NFS: Fix size of NFSACL SETACL operations
authorChuck Lever <chuck.lever@oracle.com>
Tue, 26 May 2015 15:53:52 +0000 (11:53 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Aug 2015 14:33:14 +0000 (16:33 +0200)
commit4204f4baa75900dc53fa1b6d5363036298cd2a83
tree0c54fffe9191e385914399b78f72f27bab4e3398
parentef8500b18fc4bb03286a93b6032d56ec7bcbfd15
NFS: Fix size of NFSACL SETACL operations

commit d683cc49daf7c5afca8cd9654aaa1bf63cdf2ad9 upstream.

When encoding the NFSACL SETACL operation, reserve just the estimated
size of the ACL rather than a fixed maximum. This eliminates needless
zero padding on the wire that the server ignores.

Fixes: ee5dc7732bd5 ('NFS: Fix "kernel BUG at fs/nfs/nfs3xdr.c:1338!"')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/nfs3xdr.c