summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust2018-07-31 21:54:12 +0200
committerAnna Schumaker2018-08-08 22:50:02 +0200
commitc8d07159c93150c25c3319df3d53cfc6dd46d3ee (patch)
treea782bb33700868eed07fd32f12ffd7d4bcea3bca /fs/nfs
parentNFSv4: Detect nlink changes on cross-directory renames too (diff)
downloadkernel-qcow2-linux-c8d07159c93150c25c3319df3d53cfc6dd46d3ee.tar.gz
kernel-qcow2-linux-c8d07159c93150c25c3319df3d53cfc6dd46d3ee.tar.xz
kernel-qcow2-linux-c8d07159c93150c25c3319df3d53cfc6dd46d3ee.zip
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')
-rw-r--r--fs/nfs/nfs4proc.c1
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);
}