mbox series

[v2,0/2] Adaptive readdir readahead

Message ID 20220208175702.1389115-1-trond.myklebust@hammerspace.com (mailing list archive)
Headers show
Series Adaptive readdir readahead | expand

Message

Trond Myklebust Feb. 8, 2022, 5:57 p.m. UTC
From: Trond Myklebust <trond.myklebust@hammerspace.com>

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(-)