]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSD: Fix returned READDIR offset cookie
authorChuck Lever <chuck.lever@oracle.com>
Tue, 10 Nov 2020 15:24:39 +0000 (10:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:51 +0000 (14:52 +0200)
commit29270d477fff9be7d068a15bfdf005658cbf119e
tree2864f00ed5f88112337b7be783b00eedb46df860
parent19285d319f7c143f8cc0d461c7b626c08ff8f046
NFSD: Fix returned READDIR offset cookie

[ Upstream commit 0a8f37fb34a96267c656f7254e69bb9a2fc89fe4 ]

Code inspection shows that the server's NFSv3 READDIR implementation
handles offset cookies slightly differently than the NFSv2 READDIR,
NFSv3 READDIRPLUS, and NFSv4 READDIR implementations,
and there doesn't seem to be any need for this difference.

As a clean up, I copied the logic from nfsd3_proc_readdirplus().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs3proc.c