From: Trond Myklebust Date: Tue, 28 Sep 2021 15:24:57 +0000 (-0400) Subject: NFS: Ignore the directory size when marking for revalidation X-Git-Tag: accepted/tizen/unified/20230118.172025~5359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=597e9c7a4acebcdc29bf87e6672ad8e256beb2f4;p=platform%2Fkernel%2Flinux-rpi.git NFS: Ignore the directory size when marking for revalidation [ Upstream commit a6a361c4ca3cc3e6f3b39d1b6bca1de90f5f4b11 ] 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 Tested-by: Benjamin Coddington Reviewed-by: Benjamin Coddington Signed-off-by: Sasha Levin --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 1a6d286..085b8ec 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -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); }