NFS: Add options for finer control of the lookup cache
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Jul 2008 21:58:13 +0000 (17:58 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Oct 2008 21:22:20 +0000 (17:22 -0400)
commit4eec952e42314b53e48fef1f54dd89cbf9789734
tree6c0e407472224954987021a815036fe561f88c5a
parent1daef0a868370c5a96d031b9202e3354bea060e6
NFS: Add options for finer control of the lookup cache

Add the flag NFS_MOUNT_LOOKUP_CACHE_NONEG to turn off the caching of
negative dentries. In reality what we do is to force
nfs_lookup_revalidate() to always discard negative dentries.

Add the flag NFS_MOUNT_LOOKUP_CACHE_NONE for enforcing stricter
revalidation of dentries. It forces the revalidate code to always do a
lookup instead of just checking the cached mtime of the parent directory.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
include/linux/nfs_mount.h