NFS: Limit the size of the access cache by default
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 8 Feb 2020 14:14:11 +0000 (09:14 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:29 +0000 (08:34 -0400)
commita8b373eefc82094ba84bf35a770cdb21196224e4
treeca983a1a3652133a2bb35a34e9eefb05f8c824b4
parent49cd32543fa68889111c66c79cc0a6ed2ec02019
NFS: Limit the size of the access cache by default

Currently, we have no real limit on the access cache size (we set it
to ULONG_MAX). That can lead to credentials getting pinned for a
very long time on lots of files if you have a system with a lot of
memory.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c