]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Only change the cookie verifier if the directory page cache is empty
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 17 Mar 2021 12:46:19 +0000 (08:46 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Apr 2021 13:04:20 +0000 (09:04 -0400)
commitc1a71dc3cd3c19c399c0c7cc21852f15623ec39e
tree62c539f90f96fef4a27574b39e975890c231046b
parent5b9c1f1f5d4bcf269214862bf65874c8bd9d9354
NFS: Only change the cookie verifier if the directory page cache is empty

The cached NFSv3/v4 readdir cookies are associated with a verifier,
which is checked by the server on subsequent calls to readdir, and is
only expected to change when the cookies (and hence also the page cache
contents) are considered invalid.
We therefore do have to store the verifier, but only when the page cache
is empty.

Fixes: f3922951d80b ("NFS: Improve handling of directory verifiers")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c