diff options
author | trondmy@kernel.org <trondmy@kernel.org> | 2022-01-18 19:52:16 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2022-02-02 10:47:23 -0500 |
commit | ce292d8faf41f62e0fb0c78476c6fce5d629235a (patch) | |
tree | 12504ffae6a74e609d1d04cd48e9260d4ed31f96 /fs/nfs | |
parent | d9c4e39c1f8f8a8ebaccf00b8f22c14364b2d27e (diff) | |
download | linux-ce292d8faf41f62e0fb0c78476c6fce5d629235a.tar.bz2 |
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/nfs')
-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; |