]> asedeno.scripts.mit.edu Git - linux.git/commit
NFS: Be more targeted about readdirplus use when doing lookup/revalidation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 19 Nov 2016 16:21:54 +0000 (11:21 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 2 Dec 2016 16:42:51 +0000 (11:42 -0500)
commit63519fbc67d0d9912c13185b7c1e8c2fcb218cc0
tree83bc4fe473c712a77c35b4aa59e80905f94fe869
parent79f687a3de9e3ba2518b4ea33f38ca6cbe9133eb
NFS: Be more targeted about readdirplus use when doing lookup/revalidation

There is little point in setting NFS_INO_ADVISE_RDPLUS in nfs_lookup and
nfs_lookup_revalidate() unless a process is actually doing readdir on the
parent directory.
Furthermore, there is little point in using readdirplus if we're trying
to revalidate a negative dentry.

Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/dir.c