NFS: Ignore the directory size when marking for revalidation

[ Upstream commit a6a361c4ca ]

If we want to revalidate the directory, then just mark the change
attribute as invalid.

Fixes: 13c0b082b6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Trond Myklebust 2021-09-28 11:24:57 -04:00 коммит произвёл Greg Kroah-Hartman
Родитель 69e0be0efe
Коммит 597e9c7a4a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1413,7 +1413,7 @@ out_force:
static void nfs_mark_dir_for_revalidate(struct inode *inode) static void nfs_mark_dir_for_revalidate(struct inode *inode)
{ {
spin_lock(&inode->i_lock); 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); spin_unlock(&inode->i_lock);
} }