aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authortrondmy@kernel.org <trondmy@kernel.org>2022-01-18 19:52:16 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2022-02-02 10:47:23 -0500
commitce292d8faf41f62e0fb0c78476c6fce5d629235a (patch)
tree12504ffae6a74e609d1d04cd48e9260d4ed31f96 /fs
parentNFS: Don't overfill uncached readdir pages (diff)
downloadlinux-dev-ce292d8faf41f62e0fb0c78476c6fce5d629235a.tar.xz
linux-dev-ce292d8faf41f62e0fb0c78476c6fce5d629235a.zip
NFS: Don't skip directory entries when doing uncached readdir
Ensure that we initialise desc->cache_entry_index correctly in uncached_readdir(). Fixes: d1bacf9eb2fd ("NFS: add readdir cache array") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 43df0b365b98..a3de586d21e2 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1042,6 +1042,7 @@ static int uncached_readdir(struct nfs_readdir_descriptor *desc)
goto out;
desc->page_index = 0;
+ desc->cache_entry_index = 0;
desc->last_cookie = desc->dir_cookie;
desc->duped = 0;