summaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-18 01:08:46 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-18 18:14:34 +0200
commita9a4a87a5942e9271523197a90aaa82349c818fb (patch)
tree88001fc58944798ff41d36a08ccf2bdace2cda6e /fs/nfs/write.c
parentSUNRPC: Remove unnecessary export of rpc_sockaddr2uaddr (diff)
downloadlinux-a9a4a87a5942e9271523197a90aaa82349c818fb.tar.xz
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/write.c')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 106fd0634ab3..2084a6494218 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -390,7 +390,7 @@ static int nfs_inode_add_request(struct inode *inode, struct nfs_page *req)
error = radix_tree_insert(&nfsi->nfs_page_tree, req->wb_index, req);
BUG_ON(error);
if (!nfsi->npages && nfs_have_delegation(inode, FMODE_WRITE))
- nfsi->change_attr++;
+ inode->i_version++;
set_bit(PG_MAPPED, &req->wb_flags);
SetPagePrivate(req->wb_page);
set_page_private(req->wb_page, (unsigned long)req);