From patchwork Mon Jul 13 05:50:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 6774151 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 427329F2E8 for ; Mon, 13 Jul 2015 05:51:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67DBF204EC for ; Mon, 13 Jul 2015 05:51:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6078E205F2 for ; Mon, 13 Jul 2015 05:51:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751048AbbGMFvX (ORCPT ); Mon, 13 Jul 2015 01:51:23 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34017 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbbGMFvX (ORCPT ); Mon, 13 Jul 2015 01:51:23 -0400 Received: by pacan13 with SMTP id an13so9835041pac.1 for ; Sun, 12 Jul 2015 22:51:22 -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=oa9rdFOU9oViFQ1n7XmPp5pjbkgYrPAunIz0WR82gXk=; b=jRBNCGe98BUl1dXj8ws/FwLdSKSFhCkG0gS9Vh8PxzkiKjQ3Vx3ivicwUvIGAisuhu HzAlqzAo8bhItiPFk0h5/1wmYRWat8hc5VPwyb054Gs/9HvNv2uuqVysTWNxEDyaIy54 Uwfp0B4C/IgmoIic210eO6lJP1BHiCv/XqSuVfOfgqwRVxED3OY36Zo9WgoURMs9Mw0b 7F/+ux3MCkzpxdXPVtOyQ1qi5Lt39zfvBvx11lNlR92QSGJUVSSP47zNnw4FZWq3rCaR mgfSm2opI9kt/WuHTJ1XEfzfgdErJzkBQO3xP3bC1tb6cYWSP9k4lAu2JT8z8lUCGwoB N9wQ== X-Gm-Message-State: ALoCoQmiTM5/6MYFjLuStYWzlHO1oy3aeLudXwE1p0kKgZlaKpzm58euIP6Uk+RXQiAx+bPRruVZ X-Received: by 10.70.134.70 with SMTP id pi6mr65851272pdb.100.1436766682674; Sun, 12 Jul 2015 22:51:22 -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 ho10sm17001275pbc.27.2015.07.12.22.51.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jul 2015 22:51:22 -0700 (PDT) From: Peng Tao To: linux-nfs@vger.kernel.org Cc: Trond Myklebust , Anna Schumaker , Peng Tao Subject: [PATCH 1/7] nfs42: decode_layoutstats does not need res parameter Date: Mon, 13 Jul 2015 13:50:49 +0800 Message-Id: <1436766655-10696-2-git-send-email-tao.peng@primarydata.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1436766655-10696-1-git-send-email-tao.peng@primarydata.com> References: <1436766655-10696-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 Signed-off-by: Peng Tao Reviewed-by: Christoph Hellwig --- 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; }