diff options
author | Trond Myklebust <trondmy@gmail.com> | 2018-07-31 15:54:12 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-08-08 16:50:02 -0400 |
commit | c8d07159c93150c25c3319df3d53cfc6dd46d3ee (patch) | |
tree | a782bb33700868eed07fd32f12ffd7d4bcea3bca /fs/nfs/nfs4proc.c | |
parent | 5636ec4eb6b804cd7e67e3a896f1624609dfb427 (diff) | |
download | linux-c8d07159c93150c25c3319df3d53cfc6dd46d3ee.tar.bz2 |
NFSv4: Mark the inode change attribute up to date in update_changeattr()
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>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index aa4fd5edfba4..45664bdfc1d5 100644 --- 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); } |