projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5636ec4
)
NFSv4: Mark the inode change attribute up to date in update_changeattr()
author
Trond Myklebust
<trondmy@gmail.com>
Tue, 31 Jul 2018 19:54:12 +0000
(15:54 -0400)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Wed, 8 Aug 2018 20:50:02 +0000
(16:50 -0400)
When we update the change attribute, we should also clear the flag that
says it is out of date.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index aa4fd5edfba48d0b5d52e383f97be41c70cda373..45664bdfc1d5823a85dfb87a5897c93e1258de88 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-1114,6
+1114,7
@@
update_changeattr_locked(struct inode *dir, struct nfs4_change_info *cinfo,
inode_set_iversion_raw(dir, cinfo->after);
nfsi->read_cache_jiffies = timestamp;
nfsi->attr_gencount = nfs_inc_attr_generation_counter();
+ nfsi->cache_validity &= ~NFS_INO_INVALID_CHANGE;
nfs_fscache_invalidate(dir);
}