From patchwork Tue Aug 25 15:33:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 7071601 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 739289F344 for ; Tue, 25 Aug 2015 15:35:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9E198204EA for ; Tue, 25 Aug 2015 15:35:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DF6F20896 for ; Tue, 25 Aug 2015 15:35:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751315AbbHYPfM (ORCPT ); Tue, 25 Aug 2015 11:35:12 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34219 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932609AbbHYPfI (ORCPT ); Tue, 25 Aug 2015 11:35:08 -0400 Received: by pabzx8 with SMTP id zx8so36944771pab.1 for ; Tue, 25 Aug 2015 08:35: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=bV/bv7GuAJwqb53czg9QMK01pvwPOAMN8PVFcnvo8H1LQTZq1We56p33lOAZo3xZQh DmG1/7HIVadk7cj6xApQJ9dNuJxU8wM+BJIosJ7jY5Rtu9oO7pMDe/VSTthdw8P2vNh7 /LoBZ17e6I/ZOp4y0EQcbcwPS89pYAgK1YDce1JaZAl4OEm+3/q30IuCk1sfWAo3XWSm o20O7e9+FJ7qLzy2REZ2mIy3fwfSpeky9i1e7yRI+7yqOFq6bGDuQlGSjzq4zRjfL8z+ nf+Swbh5GRQM4NIx0DegiowiRY82VESZra3G8sbLZqZQH+fvc1OX+LAAn0Ir9ck5+xTV KrPg== X-Gm-Message-State: ALoCoQlxj9h5agq7juXRvXC4qTddIDf1d2MgpR3tKds6Hnau0MJRsApvrOdl4YsEqH4fYE/hlrzZ X-Received: by 10.68.178.1 with SMTP id cu1mr58237112pbc.1.1440516907935; Tue, 25 Aug 2015 08:35: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 hu13sm21462120pdb.72.2015.08.25.08.35.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 08:35:07 -0700 (PDT) From: Peng Tao To: linux-nfs@vger.kernel.org Cc: Trond Myklebust , Anna Schumaker , Christoph Hellwig , Zach Brown , Darren Hart , bfields@fieldses.org, Jeff Layton , Peng Tao Subject: [PATCH RFC 03/11] nfs42: decode_layoutstats does not need res parameter Date: Tue, 25 Aug 2015 23:33:41 +0800 Message-Id: <1440516829-116041-4-git-send-email-tao.peng@primarydata.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1440516829-116041-1-git-send-email-tao.peng@primarydata.com> References: <1440516829-116041-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; }