aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-27 13:48:17 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-01 15:42:42 -0400
commit6a4506c0b56889aaa15bcf50b3c75f46a8d0a3bd (patch)
tree6c160685e6e81f74617408751385bfc950cbf819 /fs/nfs/inode.c
parent4124bbc52118e7da6f7ad41cc247fa16f4b3f051 (diff)
NFS: Change attribute updates should set NFS_INO_REVAL_PAGECACHE
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 8d67e5e52310..9d76c0bd1176 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1312,7 +1312,11 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
1312 if (inode->i_version != fattr->change_attr) { 1312 if (inode->i_version != fattr->change_attr) {
1313 dprintk("NFS: change_attr change on server for file %s/%ld\n", 1313 dprintk("NFS: change_attr change on server for file %s/%ld\n",
1314 inode->i_sb->s_id, inode->i_ino); 1314 inode->i_sb->s_id, inode->i_ino);
1315 invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL; 1315 invalid |= NFS_INO_INVALID_ATTR
1316 | NFS_INO_INVALID_DATA
1317 | NFS_INO_INVALID_ACCESS
1318 | NFS_INO_INVALID_ACL
1319 | NFS_INO_REVAL_PAGECACHE;
1316 if (S_ISDIR(inode->i_mode)) 1320 if (S_ISDIR(inode->i_mode))
1317 nfs_force_lookup_revalidate(inode); 1321 nfs_force_lookup_revalidate(inode);
1318 inode->i_version = fattr->change_attr; 1322 inode->i_version = fattr->change_attr;