Commit ce292d8f authored by trondmy@kernel.org's avatar trondmy@kernel.org Committed by Anna Schumaker
Browse files

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



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

Fixes: d1bacf9e ("NFS: add readdir cache array")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent d9c4e39c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;