aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2012-10-02 21:07:32 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-02 21:12:25 -0400
commite23008ec81ef37b7b271669ce5d2de2643b2dc75 (patch)
treedaa52b0b710384e67b387e0fd4b607ecb8435492 /fs/nfs/nfs4xdr.c
parent807d66d80221920729a8d4abfa04246546a6d3fa (diff)
NFSv4 reduce attribute requests for open reclaim
We currently make no distinction in attribute requests between normal OPENs and OPEN with CLAIM_PREVIOUS. This offers more possibility of failures in the GETATTR response which foils OPEN reclaim attempts. Reduce the requested attributes to the bare minimum needed to update the reclaim open stateid and split nfs4_opendata_to_nfs4_state processing accordingly. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 0d6030510fe2..40836ee5dc3a 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -2264,7 +2264,7 @@ static void nfs4_xdr_enc_open_noattr(struct rpc_rqst *req,
2264 encode_open(xdr, args, &hdr); 2264 encode_open(xdr, args, &hdr);
2265 if (args->access) 2265 if (args->access)
2266 encode_access(xdr, args->access, &hdr); 2266 encode_access(xdr, args->access, &hdr);
2267 encode_getfattr(xdr, args->bitmask, &hdr); 2267 encode_getfattr_open(xdr, args->bitmask, args->open_bitmap, &hdr);
2268 encode_nops(&hdr); 2268 encode_nops(&hdr);
2269} 2269}
2270 2270