]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix handling of cookie verifier in uncached_readdir()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 16 Mar 2021 11:57:40 +0000 (07:57 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Apr 2021 13:04:20 +0000 (09:04 -0400)
commit5b9c1f1f5d4bcf269214862bf65874c8bd9d9354
treeef8a119a1cba3b35b054c235ba0244b707c1d7dc
parent8e9f550796112f041a91d40b2e928b06bae70e86
NFS: Fix handling of cookie verifier in uncached_readdir()

If we're doing uncached readdir(), then the readdir cookie could be
different from the one cached in the nfs_inode. We should therefore
ensure that we save that one in the struct nfs_open_dir_context.

Fixes: fe626c88f300 ("NFS: Reduce number of RPC calls when doing uncached readdir")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c