summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-08-15 00:30:41 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-08-16 22:15:50 +0200
commitb291f1b1c86aa0c7bc3df2994e6a1a4e53f1fde0 (patch)
tree6f1381f4a70174dc719c557751536e8cb8828757 /fs/cifs
parentNFSv4: Fix pointer arithmetic in decode_getacl (diff)
downloadlinux-b291f1b1c86aa0c7bc3df2994e6a1a4e53f1fde0.tar.xz
linux-b291f1b1c86aa0c7bc3df2994e6a1a4e53f1fde0.zip
NFSv4: Fix the acl cache size calculation
Currently, we do not take into account the size of the 16 byte struct nfs4_cached_acl header, when deciding whether or not we should cache the acl data. Consequently, we will end up allocating an 8k buffer in order to fit a maximum size 4k acl. This patch adjusts the calculation so that we limit the cache size to 4k for the acl header+data. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions