From: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx> 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 Trond Myklebust (2): NFS: Adjust the amount of readahead performed by NFS readdir NFS: Simplify nfs_readdir_xdr_to_array() fs/nfs/dir.c | 77 ++++++++++++++++++++++++++++++++---------- include/linux/nfs_fs.h | 1 + 2 files changed, 60 insertions(+), 18 deletions(-) -- 2.34.1