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)
commite47a62df29a0714cc2d5129516a3618337c84554
tree468b8be51d92dda4c8707044bfc5836206f2311c
parent648a4548d622c4ae965058db1a6b5b95c062789a
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