commit | b291f1b1c86aa0c7bc3df2994e6a1a4e53f1fde0 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Tue Aug 14 18:30:41 2012 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Thu Aug 16 16:15:50 2012 -0400 |
tree | 6f1381f4a70174dc719c557751536e8cb8828757 | |
parent | 519d3959e30a98f8e135e7a16647c10af5ad63d5 [diff] |
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>