NFS: Reduce use of uncached readdir
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 17 Feb 2022 18:02:37 +0000 (13:02 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Mar 2022 13:43:38 +0000 (08:43 -0500)
commit9c3f4d988c23d099095c8b75cbd449e0466fa102
tree6e9caaf1b20fef8d3b9ce14344659044a2143ae8
parent9ff89c25d8addeee8eea84fa828f1d2ad659cc54
NFS: Reduce use of uncached readdir

When reading a very large directory, we want to try to keep the page
cache up to date if doing so is inexpensive. With the change to allow
readdir to continue reading even when the cache is incomplete, we no
longer need to fall back to uncached readdir in order to scale to large
directories.

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