aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 30d5dd5735cd..cb99fd90a9ac 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -208,12 +208,10 @@ static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo)
208 struct nfs_inode *nfsi = NFS_I(dir); 208 struct nfs_inode *nfsi = NFS_I(dir);
209 209
210 spin_lock(&dir->i_lock); 210 spin_lock(&dir->i_lock);
211 if (cinfo->after != nfsi->change_attr) { 211 nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA;
212 nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; 212 if (!cinfo->atomic || cinfo->before != nfsi->change_attr)
213 if (!cinfo->atomic || cinfo->before != nfsi->change_attr) 213 nfsi->cache_change_attribute = jiffies;
214 nfsi->cache_change_attribute = jiffies; 214 nfsi->change_attr = cinfo->after;
215 nfsi->change_attr = cinfo->after;
216 }
217 spin_unlock(&dir->i_lock); 215 spin_unlock(&dir->i_lock);
218} 216}
219 217