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)
commit13884ff2bef01df37c450c6dd09122f92333dccc
treeef8a119a1cba3b35b054c235ba0244b707c1d7dc
parentee3707ae2c1f1327ad5188836b7ab62ed2c93b28
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: 35df59d3ef69 ("NFS: Reduce number of RPC calls when doing uncached readdir")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c