mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 17:41:09 +00:00
NFS: Don't skip directory entries when doing uncached readdir
[ Upstream commitce292d8faf
] Ensure that we initialise desc->cache_entry_index correctly in uncached_readdir(). Fixes:d1bacf9eb2
("NFS: add readdir cache array") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
557302faea
commit
3d2bc21a67
1 changed files with 1 additions and 0 deletions
|
@ -1049,6 +1049,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue