projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c4e39
)
NFS: Don't skip directory entries when doing uncached readdir
author
trondmy@kernel.org
<trondmy@kernel.org>
Wed, 19 Jan 2022 00:52:16 +0000
(19:52 -0500)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Wed, 2 Feb 2022 15:47:23 +0000
(10:47 -0500)
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>
fs/nfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 43df0b365b981e346687694eb97b8b6f5e1e3c80..a3de586d21e2bf17808ac646d1d4044e4cc785a7 100644
(file)
--- 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;