diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-18 01:08:46 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-18 18:14:34 +0200 |
commit | a9a4a87a5942e9271523197a90aaa82349c818fb (patch) | |
tree | 88001fc58944798ff41d36a08ccf2bdace2cda6e /fs/nfs/delegation.c | |
parent | SUNRPC: Remove unnecessary export of rpc_sockaddr2uaddr (diff) | |
download | linux-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/delegation.c')
-rw-r--r-- | fs/nfs/delegation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 321a66bc3846..7f2654069806 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -240,7 +240,7 @@ int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct sizeof(delegation->stateid.data)); delegation->type = res->delegation_type; delegation->maxsize = res->maxsize; - delegation->change_attr = nfsi->change_attr; + delegation->change_attr = inode->i_version; delegation->cred = get_rpccred(cred); delegation->inode = inode; delegation->flags = 1<<NFS_DELEGATION_REFERENCED; |