Skip to content
Commit 580f2367 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Adjust the amount of readahead performed by NFS readdir



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.

This patch therefore tries to tone down the amount of readahead we
perform, and adjust it to try to match the amount of data being
requested by user space.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent c8f0523b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment