summaryrefslogtreecommitdiff
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:40 -0400
commit9e907fec6ef7705ba07e22f034dacf102d29a538 (patch)
treec0152c28061bd712faec9320bb9da4e0e72d9411
parenta9f6991b6cd3f55aa8482633337cd811d84d0dd8 (diff)
downloadlinux-3.10-9e907fec6ef7705ba07e22f034dacf102d29a538.tar.gz
linux-3.10-9e907fec6ef7705ba07e22f034dacf102d29a538.tar.bz2
linux-3.10-9e907fec6ef7705ba07e22f034dacf102d29a538.zip
NFSv4: Delegreturn only needs the cache consistency bitmask
In order to do close-to-open cache consistency checking after a delegreturn, we don't need to retrieve the full set of attributes. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 1780391a2c4..111a3cc657c 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -4117,7 +4117,7 @@ static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, co
nfs41_init_sequence(&data->args.seq_args, &data->res.seq_res, 1);
data->args.fhandle = &data->fh;
data->args.stateid = &data->stateid;
- data->args.bitmask = server->attr_bitmask;
+ data->args.bitmask = server->cache_consistency_bitmask;
nfs_copy_fh(&data->fh, NFS_FH(inode));
nfs4_stateid_copy(&data->stateid, stateid);
data->res.fattr = &data->fattr;