nfsd4: adjust buflen for encoded attrs bitmap based on actual bitmap length
authorBenny Halevy <bhalevy@panasas.com>
Thu, 30 Sep 2010 18:47:46 +0000 (20:47 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Oct 2010 20:52:24 +0000 (16:52 -0400)
commit2b44f1ba40914777f4b1075254ba97663d4e2574
tree1db499fcc1aadc447d11b7c901707db8f7b430d8
parentc135e84afb6bcec9cb8ef0492fa4867efbfaad91
nfsd4: adjust buflen for encoded attrs bitmap based on actual bitmap length

The existing code adjusted it based on the worst case scenario for the returned
bitmap and the best case scenario for the supported attrs attribute.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[bfields@redhat.com: removed likely/unlikely's]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c