]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFS: Don't skip directory entries when doing uncached readdir
authortrondmy@kernel.org <trondmy@kernel.org>
Wed, 19 Jan 2022 00:52:16 +0000 (19:52 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:42:01 +0000 (11:42 +0100)
commit7d33241609c3d45382154e73d8146d6178e1f306
treecb254ee558b46fe8c7f3b544e6bde59017aafe9c
parent3bb815eb6eeeda866d775b20d6dc972ccc7881a3
NFS: Don't skip directory entries when doing uncached readdir

BugLink: https://bugs.launchpad.net/bugs/1963889
[ Upstream commit ce292d8faf41f62e0fb0c78476c6fce5d629235a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/dir.c