]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1317f537b8177e74f5e03cbe03e828984f5fd3a
tree1db499fcc1aadc447d11b7c901707db8f7b430d8
parent10ff1ee5faf783218a2460c9c1089f8e00e148d8
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