NFS: Fix up nfs_readdir_inode_mapping_valid()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 28 Sep 2021 16:37:05 +0000 (12:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Oct 2021 00:49:07 +0000 (20:49 -0400)
commit2929bc3329f4c7e4df400acca2b1844492650bfd
tree3b0bdce8d33627ed50a98f0cbe59055141344192
parenta6a361c4ca3cc3e6f3b39d1b6bca1de90f5f4b11
NFS: Fix up nfs_readdir_inode_mapping_valid()

The check for duplicate readdir cookies should only care if the change
attribute is invalid or the data cache is invalid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
fs/nfs/dir.c