diff mbox series

[v3,3/3] NFSv4: Mark the inode change attribute up to date in update_changeattr()

Message ID 20180731195412.10912-4-trond.myklebust@hammerspace.com (mailing list archive)
State New, archived
Headers show
Series Fix mkdir/rmdir() in NFSv4 | expand

Commit Message

Trond Myklebust July 31, 2018, 7:54 p.m. UTC
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>
---
 fs/nfs/nfs4proc.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 2f07a31e2fb6..a8617fa865e5 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1107,6 +1107,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);
 }