summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-17 16:08:46 -0700
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-18 09:14:34 -0700
commita9a4a87a5942e9271523197a90aaa82349c818fb (patch)
tree88001fc58944798ff41d36a08ccf2bdace2cda6e /fs/nfs/nfs4proc.c
parent919066d690541f4bd727b0e0fc2f7a20a7e3b3a7 (diff)
downloadblackbird-op-linux-a9a4a87a5942e9271523197a90aaa82349c818fb.tar.gz
blackbird-op-linux-a9a4a87a5942e9271523197a90aaa82349c818fb.zip
NFS: Use the inode->i_version to cache NFSv4 change attribute information
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 4700fae1ada0..0f0b6076de62 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -753,9 +753,9 @@ static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo)
spin_lock(&dir->i_lock);
nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA;
- if (!cinfo->atomic || cinfo->before != nfsi->change_attr)
+ if (!cinfo->atomic || cinfo->before != dir->i_version)
nfs_force_lookup_revalidate(dir);
- nfsi->change_attr = cinfo->after;
+ dir->i_version = cinfo->after;
spin_unlock(&dir->i_lock);
}
OpenPOWER on IntegriCloud