]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix the acl cache size calculation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 14 Aug 2012 22:30:41 +0000 (18:30 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Aug 2012 20:15:50 +0000 (16:15 -0400)
commit6d82ff4a60423c5851c10f415053d09e78fa1c72
tree6f1381f4a70174dc719c557751536e8cb8828757
parent1dbca25170e4f965622e96044298963d790f796f
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>
fs/nfs/nfs4proc.c