diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-17 16:08:46 -0700 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-18 09:14:34 -0700 |
commit | a9a4a87a5942e9271523197a90aaa82349c818fb (patch) | |
tree | 88001fc58944798ff41d36a08ccf2bdace2cda6e /fs/nfs/fscache-index.c | |
parent | 919066d690541f4bd727b0e0fc2f7a20a7e3b3a7 (diff) | |
download | linux-riscv-a9a4a87a5942e9271523197a90aaa82349c818fb.tar.gz linux-riscv-a9a4a87a5942e9271523197a90aaa82349c818fb.tar.bz2 linux-riscv-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/fscache-index.c')
-rw-r--r-- | fs/nfs/fscache-index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/fscache-index.c b/fs/nfs/fscache-index.c index 5b1006480bc2..7cf2c4699b08 100644 --- a/fs/nfs/fscache-index.c +++ b/fs/nfs/fscache-index.c @@ -212,7 +212,7 @@ static uint16_t nfs_fscache_inode_get_aux(const void *cookie_netfs_data, auxdata.ctime = nfsi->vfs_inode.i_ctime; if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) - auxdata.change_attr = nfsi->change_attr; + auxdata.change_attr = nfsi->vfs_inode.i_version; if (bufmax > sizeof(auxdata)) bufmax = sizeof(auxdata); @@ -244,7 +244,7 @@ enum fscache_checkaux nfs_fscache_inode_check_aux(void *cookie_netfs_data, auxdata.ctime = nfsi->vfs_inode.i_ctime; if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) - auxdata.change_attr = nfsi->change_attr; + auxdata.change_attr = nfsi->vfs_inode.i_version; if (memcmp(data, &auxdata, datalen) != 0) return FSCACHE_CHECKAUX_OBSOLETE; |