Skip to content

Commit d35891c

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 87264fb commit d35891c

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
@@ -207,7 +207,8 @@ static void nfs_set_cache_invalid(struct inode *inode, unsigned long flags)
207207
| NFS_INO_INVALID_SIZE
208208
| NFS_INO_REVAL_PAGECACHE
209209
| NFS_INO_INVALID_XATTR);
210-
}
210+
} else if (flags & NFS_INO_REVAL_PAGECACHE)
211+
flags |= NFS_INO_INVALID_CHANGE | NFS_INO_INVALID_SIZE;
211212

212213
if (inode->i_mapping->nrpages == 0)
213214
flags &= ~(NFS_INO_INVALID_DATA|NFS_INO_DATA_INVAL_DEFER);

0 commit comments

Comments
 (0)