]> 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)
commit9fb77a970d9a144bb1c3329e752bd2ef4961fc33
tree468b8be51d92dda4c8707044bfc5836206f2311c
parentfdef7c68aa915f27398de0833d8fb0ac2b735680
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