Skip to contentSkip to conversation

NFS: Don't skip directory entries when doing uncached readdir

PATCH New [email protected] 1 participant 1 message Jan 19, 2022

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 NFS: Don't skip directory entries when doing uncached readdir

From: Trond Myklebust <[email protected]>

Ensure that we initialise desc->cache_entry_index correctly in uncached_readdir().

Fixes d1bacf9eb2fd ("NFS: add readdir cache array")
---
 fs/nfs/dir.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/dir.c +1 -0
index cbf1a304ca18..07ad7095fffb 100644
@@ -1041,6 +1041,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;
 
Signature · 1 line
2.34.1