From: Trond Myklebust <[email protected]>
The current NFS readdir code will always try to maximise the amount of
readahead it performs on the assumption that we can cache anything that
isn't immediately read by the process.
There are several cases where this assumption breaks down, including
when the 'ls -l' heuristic kicks in to try to force use of readdirplus
as a batch replacement for lookup/getattr.
--
v2: Remove reset of dtsize when NFS_INO_FORCE_READDIR is set
v3: Avoid excessive window shrinking in uncached_readdir case
v4: Track 'ls -l' cache hit/miss statistics
Improved algorithm for falling back to uncached readdir
Skip readdirplus when files are being written to
Trond Myklebust (5):
NFS: Adjust the amount of readahead performed by NFS readdir
NFS: Simplify nfs_readdir_xdr_to_array()
NFS: Improve algorithm for falling back to uncached readdir
NFS: Improve heuristic for readdirplus
NFS: Don't ask for readdirplus if files are being written to
fs/nfs/dir.c | 210 ++++++++++++++++++++++++++---------------
fs/nfs/inode.c | 17 ++--
fs/nfs/internal.h | 4 +-
fs/nfs/nfstrace.h | 1 -
include/linux/nfs_fs.h | 7 +-
5 files changed, 153 insertions(+), 86 deletions(-)
--
2.35.1