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:47 +0000 (09:29 -0700)
commitf35c364f0e14db2df30a2518c4db844b453beae9
tree15b6c2b8a7d3350c5e13570dfa3001d7bd27d8fa
parent6afa955908877c770d18eb53a00bf8113fa9dab3
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