NFS: Ignore the directory size when marking for revalidation
If we want to revalidate the directory, then just mark the change attribute as invalid. Fixes: 13c0b082b6a9 ("NFS: Replace use of NFS_INO_REVAL_PAGECACHE when checking cache validity") 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
488796ec1e
commit
a6a361c4ca
@ -1413,7 +1413,7 @@ out_force:
|
||||
static void nfs_mark_dir_for_revalidate(struct inode *inode)
|
||||
{
|
||||
spin_lock(&inode->i_lock);
|
||||
nfs_set_cache_invalid(inode, NFS_INO_REVAL_PAGECACHE);
|
||||
nfs_set_cache_invalid(inode, NFS_INO_INVALID_CHANGE);
|
||||
spin_unlock(&inode->i_lock);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user