mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
a6a361c4ca
commit
2929bc3329
1 changed files with 2 additions and 1 deletions
|
@ -411,7 +411,8 @@ out_eof:
|
||||||
static bool
|
static bool
|
||||||
nfs_readdir_inode_mapping_valid(struct nfs_inode *nfsi)
|
nfs_readdir_inode_mapping_valid(struct nfs_inode *nfsi)
|
||||||
{
|
{
|
||||||
if (nfsi->cache_validity & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA))
|
if (nfsi->cache_validity & (NFS_INO_INVALID_CHANGE |
|
||||||
|
NFS_INO_INVALID_DATA))
|
||||||
return false;
|
return false;
|
||||||
smp_rmb();
|
smp_rmb();
|
||||||
return !test_bit(NFS_INO_INVALIDATING, &nfsi->flags);
|
return !test_bit(NFS_INO_INVALIDATING, &nfsi->flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue