mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
NFS: Don't skip directory entries when doing uncached readdir
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>
This commit is contained in:
parent
d9c4e39c1f
commit
ce292d8faf
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user