From patchwork Tue Aug 25 16:13:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 7071861 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D9941C05AC for ; Tue, 25 Aug 2015 16:13:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 20C1E207F6 for ; Tue, 25 Aug 2015 16:13:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32066207F1 for ; Tue, 25 Aug 2015 16:13:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753943AbbHYQNg (ORCPT ); Tue, 25 Aug 2015 12:13:36 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34851 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753280AbbHYQNf (ORCPT ); Tue, 25 Aug 2015 12:13:35 -0400 Received: by pacdd16 with SMTP id dd16so128495675pac.2 for ; Tue, 25 Aug 2015 09:13:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tFwWD/NF1N3lipY5r5lQgM+AN0P6WcJ7WtEonLqWYvk=; b=lsG/SN2iFc1PPLQqbTjlC2Ke7uem2qhLQo+IG/oGhhVaQuICo1Uq5KiNRggvYNBry8 VJAwpgtgHuhjL7BA6UKFcBBSndqk7zW7uI3EwodPrqzXEDFPIFfsiAZBlRq6K9QNp+vo VaIR30TgOeOTgcsP5YRXYOVHLL5P3CEM5+1z3w71HcjAdwWsS66/t4g86TOxMqvSL+ZW D2iN3wCo8Sx1g/b1pUC9xHxPqU1D8JYJ2e4eVD+7Fw5Wc0WuypMCHHEH2DAXtInWcy1W YGVdSg+DoZCV842dpB2rE1u3Lcoyyu3CVpyoeFSDphb/f7DWibZid8umc1+v4gHnV4Je cseg== X-Gm-Message-State: ALoCoQlTxqGHT0CDUWwhrMZOvJmVx00E3qjh3VobAXejOCzJVOhblGQomc+LW8tFw2pdRXpLCNI4 X-Received: by 10.68.225.228 with SMTP id rn4mr58301207pbc.25.1440519215349; Tue, 25 Aug 2015 09:13:35 -0700 (PDT) Received: from lear.localdomain (ec2-54-65-164-9.ap-northeast-1.compute.amazonaws.com. [54.65.164.9]) by smtp.gmail.com with ESMTPSA id w2sm20119120pdo.89.2015.08.25.09.13.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 09:13:34 -0700 (PDT) From: Peng Tao To: linux-nfs@vger.kernel.org Cc: Anna Schumaker , Trond Myklebust , Peng Tao Subject: [PATCH 1/2] nfs42: decode_layoutstats does not need res parameter Date: Wed, 26 Aug 2015 00:13:15 +0800 Message-Id: <1440519196-116456-2-git-send-email-tao.peng@primarydata.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1440519196-116456-1-git-send-email-tao.peng@primarydata.com> References: <1440519196-116456-1-git-send-email-tao.peng@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Christoph Hellwig Signed-off-by: Peng Tao --- fs/nfs/nfs42xdr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/nfs/nfs42xdr.c b/fs/nfs/nfs42xdr.c index a6bd27d..0eb29e1 100644 --- a/fs/nfs/nfs42xdr.c +++ b/fs/nfs/nfs42xdr.c @@ -238,8 +238,7 @@ out_overflow: return -EIO; } -static int decode_layoutstats(struct xdr_stream *xdr, - struct nfs42_layoutstat_res *res) +static int decode_layoutstats(struct xdr_stream *xdr) { return decode_op_hdr(xdr, OP_LAYOUTSTATS); } @@ -343,7 +342,7 @@ static int nfs4_xdr_dec_layoutstats(struct rpc_rqst *rqstp, goto out; WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV); for (i = 0; i < res->num_dev; i++) { - status = decode_layoutstats(xdr, res); + status = decode_layoutstats(xdr); if (status) goto out; }