OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb6a82
)
NFS: NFS_INO_REVAL_PAGECACHE should mark the change attribute invalid
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Fri, 26 Mar 2021 00:46:36 +0000
(20:46 -0400)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 12 Apr 2021 21:14:17 +0000
(17:14 -0400)
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>
fs/nfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index
c429a53
..
a9b302b
100644
(file)
--- a/
fs/nfs/inode.c
+++ b/
fs/nfs/inode.c
@@
-219,7
+219,8
@@
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 (!nfs_has_xattr_cache(nfsi))
flags &= ~NFS_INO_INVALID_XATTR;