From patchwork Fri Jun 20 17:30:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schumaker, Anna" X-Patchwork-Id: 4391321 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AF8FF9F314 for ; Fri, 20 Jun 2014 17:30:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E16BB20351 for ; Fri, 20 Jun 2014 17:30:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 214E42027D for ; Fri, 20 Jun 2014 17:30:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935151AbaFTRag (ORCPT ); Fri, 20 Jun 2014 13:30:36 -0400 Received: from mx11.netapp.com ([216.240.18.76]:63273 "EHLO mx11.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935150AbaFTRaf (ORCPT ); Fri, 20 Jun 2014 13:30:35 -0400 X-IronPort-AV: E=Sophos;i="5.01,514,1400050800"; d="scan'208";a="129874216" Received: from vmwexceht04-prd.hq.netapp.com ([10.106.77.34]) by mx11-out.netapp.com with ESMTP; 20 Jun 2014 10:30:32 -0700 Received: from VMWEXCHTS02-PRD.hq.netapp.com (10.122.105.23) by vmwexceht04-prd.hq.netapp.com (10.106.77.34) with Microsoft SMTP Server (TLS) id 14.3.123.3; Fri, 20 Jun 2014 10:30:33 -0700 Received: from smtp2.corp.netapp.com (10.57.159.114) by VMWEXCHTS02-PRD.hq.netapp.com (10.122.105.23) with Microsoft SMTP Server id 15.0.847.32; Fri, 20 Jun 2014 10:30:28 -0700 Received: from davros.com (davros.ocarinaproject.vpn.netapp.com [10.63.232.112]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id s5KHURDV019761; Fri, 20 Jun 2014 10:30:28 -0700 (PDT) From: Anna Schumaker To: , Subject: [PATCH] nfs: Fix unused variable error Date: Fri, 20 Jun 2014 13:30:26 -0400 Message-ID: <1403285426-1835-1-git-send-email-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.0.0 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 inode is unused when CONFIG_SUNRPC_DEBUG=n. Signed-off-by: Anna Schumaker --- fs/nfs/pagelist.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 8143d6b..6e2c0bc 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c @@ -552,7 +552,6 @@ static void nfs_pgio_prepare(struct rpc_task *task, void *calldata) int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr, const struct rpc_call_ops *call_ops, int how, int flags) { - struct inode *inode = hdr->inode; struct rpc_task *task; struct rpc_message msg = { .rpc_argp = &hdr->args, @@ -575,8 +574,8 @@ int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr, dprintk("NFS: %5u initiated pgio call " "(req %s/%llu, %u bytes @ offset %llu)\n", hdr->task.tk_pid, - inode->i_sb->s_id, - (unsigned long long)NFS_FILEID(inode), + hdr->inode->i_sb->s_id, + (unsigned long long)NFS_FILEID(hdr->inode), hdr->args.count, (unsigned long long)hdr->args.offset);