Skip to content
Commit 98512f35 authored by trondmy@kernel.org's avatar trondmy@kernel.org Committed by Greg Kroah-Hartman
Browse files

NFS: Don't overfill uncached readdir pages

[ Upstream commit d9c4e39c ]

If we're doing an uncached read of the directory, then we ideally want
to read only the exact set of entries that will fit in the buffer
supplied by the getdents() system call. So unlike the case where we're
reading into the page cache, let's send only one READDIR call, before
trying to fill up the buffer.

Fixes: 35df59d3

 ("NFS: Reduce number of RPC calls when doing uncached readdir")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d038dc10
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment