1
0
Fork 0

NFS: NFS_INO_REVAL_PAGECACHE should mark the change attribute invalid

[ Upstream commit 50c7a7994d ]

When we're looking to revalidate the page cache, we should just ensure
that we mark the change attribute invalid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
pull/350/head^2
Trond Myklebust 2021-03-25 20:46:36 -04:00 committed by Greg Kroah-Hartman
parent 87264fb5ab
commit d35891cbb1
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ static void nfs_set_cache_invalid(struct inode *inode, unsigned long flags)
| NFS_INO_INVALID_SIZE
| NFS_INO_REVAL_PAGECACHE
| NFS_INO_INVALID_XATTR);
}
} else if (flags & NFS_INO_REVAL_PAGECACHE)
flags |= NFS_INO_INVALID_CHANGE | NFS_INO_INVALID_SIZE;
if (inode->i_mapping->nrpages == 0)
flags &= ~(NFS_INO_INVALID_DATA|NFS_INO_DATA_INVAL_DEFER);