NFS: Fix size of NFSACL SETACL operations
authorChuck Lever <chuck.lever@oracle.com>
Tue, 26 May 2015 15:53:52 +0000 (11:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:58 +0000 (09:29 -0700)
commit752a65413b78af54f15bf5e778235d64dcc9d56b
tree19e3efc1ef709b02af025b72b54160eeaa70e03c
parent615b5141abfb6c1f3787a766be3a3ef480b18957
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs3xdr.c