From patchwork Mon Jul 13 09:06:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 6776281 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B92DE9F380 for ; Mon, 13 Jul 2015 09:07:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE3BB2063C for ; Mon, 13 Jul 2015 09:07:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D683620678 for ; Mon, 13 Jul 2015 09:07:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752332AbbGMJHL (ORCPT ); Mon, 13 Jul 2015 05:07:11 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35014 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbbGMJHI (ORCPT ); Mon, 13 Jul 2015 05:07:08 -0400 Received: by pactm7 with SMTP id tm7so204222696pac.2 for ; Mon, 13 Jul 2015 02:07:08 -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=Xj+uuewMCpPGoDtyx/i5H5qY3tEwCXD1W8s9ppNqFtJAkKY0HgKp4ESyo2s90OzgyK wKR9vl742zpc1JZQiEpINddMEZEVuxEdAh9TUppE/89SdsNhfYgZLToVDK9YHgZNhU52 z9h97lMl3ziNuigdRdjMDfnjtUaWPBz52QOEWqWt3JBV+UXXZVyarRpYJWgFs20RN7RA mWdor8OOzI2t3B3DfRgbVf8BSCX4TZXdA8Yxly4XIxdeLLKBJK8Dg2jJsX30nvBUCyny a1FPrb2X4i6qKElrbqe0UGISzfY4kAVIOM4WxhsjHixUDfXVECxZTrkuelLMUEkX7rzL SVxg== X-Gm-Message-State: ALoCoQnNEoY/gWpS3bjDFLEMU8mEe+Noeb+ebBHHlWiFunqlEZqlhziISRzN9AvJq2G3/0IRCYK+ X-Received: by 10.70.96.194 with SMTP id du2mr68610255pdb.108.1436778427951; Mon, 13 Jul 2015 02:07:07 -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 dp1sm17692664pbb.53.2015.07.13.02.07.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 02:07:07 -0700 (PDT) From: Peng Tao To: linux-nfs@vger.kernel.org Cc: Trond Myklebust , Anna Schumaker , Peng Tao Subject: [PATCH v2 1/8] nfs42: decode_layoutstats does not need res parameter Date: Mon, 13 Jul 2015 17:06:01 +0800 Message-Id: <1436778368-65447-2-git-send-email-tao.peng@primarydata.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1436778368-65447-1-git-send-email-tao.peng@primarydata.com> References: <1436778368-65447-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.3 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; }