summaryrefslogtreecommitdiffstats
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 18:12:25 -0700
commite23008ec81ef37b7b271669ce5d2de2643b2dc75 (patch)
treedaa52b0b710384e67b387e0fd4b607ecb8435492 /fs/nfs/nfs4xdr.c
parent807d66d80221920729a8d4abfa04246546a6d3fa (diff)
downloadop-kernel-dev-e23008ec81ef37b7b271669ce5d2de2643b2dc75.zip
op-kernel-dev-e23008ec81ef37b7b271669ce5d2de2643b2dc75.tar.gz
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 0d60305..40836ee 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,
encode_open(xdr, args, &hdr);
if (args->access)
encode_access(xdr, args->access, &hdr);
- encode_getfattr(xdr, args->bitmask, &hdr);
+ encode_getfattr_open(xdr, args->bitmask, args->open_bitmap, &hdr);
encode_nops(&hdr);
}
OpenPOWER on IntegriCloud