Skip to content

Commit 91315d8

Browse files
Trond Myklebustgregkh
Trond Myklebust
authored andcommitted
NFS: NFS_INO_REVAL_PAGECACHE should mark the change attribute invalid
[ Upstream commit 50c7a79 ] 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 <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent bcc55eb commit 91315d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfs/inode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ void nfs_set_cache_invalid(struct inode *inode, unsigned long flags)
219219
| NFS_INO_INVALID_SIZE
220220
| NFS_INO_REVAL_PAGECACHE
221221
| NFS_INO_INVALID_XATTR);
222-
}
222+
} else if (flags & NFS_INO_REVAL_PAGECACHE)
223+
flags |= NFS_INO_INVALID_CHANGE | NFS_INO_INVALID_SIZE;
223224

224225
if (!nfs_has_xattr_cache(nfsi))
225226
flags &= ~NFS_INO_INVALID_XATTR;

0 commit comments

Comments
 (0)