]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix revalidation of empty readdir pages
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Mar 2022 13:11:44 +0000 (09:11 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Mar 2022 19:52:55 +0000 (15:52 -0400)
commit58c4286dfde0b8bcd8d4e25eb5abd24a4760d45f
tree468b8be51d92dda4c8707044bfc5836206f2311c
parent1a66bf2ff7fef5cf6368b6af90484fdde203e250
NFS: Fix revalidation of empty readdir pages

If the page is empty, we need to check the array->last_cookie instead of
the first entry. Add a helper for the cases where we care.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c