NFSD: Fix returned READDIR offset cookie
authorChuck Lever <chuck.lever@oracle.com>
Tue, 10 Nov 2020 15:24:39 +0000 (10:24 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:24 +0000 (09:36 -0500)
commit0a8f37fb34a96267c656f7254e69bb9a2fc89fe4
treedc37c2b4404dce81ee71ce62d4db863806da3e87
parent224c1c894e48cd72e4dd9fb6311be80cbe1369b0
NFSD: Fix returned READDIR offset cookie

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>
fs/nfsd/nfs3proc.c