diff options
author | trondmy@kernel.org <trondmy@kernel.org> | 2022-01-19 01:52:16 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2022-02-02 16:47:23 +0100 |
commit | ce292d8faf41f62e0fb0c78476c6fce5d629235a (patch) | |
tree | 12504ffae6a74e609d1d04cd48e9260d4ed31f96 /fs | |
parent | NFS: Don't overfill uncached readdir pages (diff) | |
download | linux-ce292d8faf41f62e0fb0c78476c6fce5d629235a.tar.xz linux-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.c | 1 |
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; |