NFS: Ignore the directory size when marking for revalidation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 28 Sep 2021 15:24:57 +0000 (11:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:17:00 +0000 (19:17 +0100)
commit597e9c7a4acebcdc29bf87e6672ad8e256beb2f4
tree79357cd39094dbcf21ddc02cedc8051a1e71b9da
parent69e0be0efe53fb012f5db32bc328590745cf8f71
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 <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>
fs/nfs/dir.c