Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6876193ybx; Mon, 11 Nov 2019 16:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxWm6CphwiUzKlzDysstKFEAQDalxDhfwMgWCQJBktt2pPvILT+K1OWSMQkfkfyG7WtYzHh X-Received: by 2002:a05:6402:1157:: with SMTP id g23mr30526311edw.260.1573518978308; Mon, 11 Nov 2019 16:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573518978; cv=none; d=google.com; s=arc-20160816; b=lChvVOVBAYC1xxxx/Y5KRmfEVpJgsTxEBDNldAo/EdJtTIaTz8YtLoHnRjEzxKs9bX Lgh+8778rJP/7u/ehMiWeuKFxJhUVxAf1GceQ7oyWh9W7CY00V9oM7NBDe6kikJrXs71 00dbS8Km3H7diiOOCTw3Y1mNQ3KRW8PFRyHXM4xINQARTQgrM5rDANyU1Ce0TgON/ybl HkkDh9HR5gnsjAOPhcVr42fwy9E9aw0sKm7nOHDLNAxJRjEKRoxeyJzAghVUgYtaueOh duqB5DwTGtlJkIJnSpPmg7YNOSvAqc1rUbKWh4JQAWFJfebBatR2BJ7fjiAo1bGhJw2l bnIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LYorxc7dRQ7hYBeGWqLOH+N/l1HqPiV27VM/yUO+fP8=; b=yT+Kelw9BwIBgZlsZ3ZnHFUFn8ePxbeSmW82TfDgVsGQUxjUUyb6J4PkVv0phnuVH7 vBx4JuBudF1iPlVcUpM64rfGszC1MbjUVFksICGdnfFuxqaLmI9rFiQUKKutquMZmOC9 EP10JKS2oqa01PVRz1pYY0wbzDYBfX1/s3UUYhs8TEk/CXkb/YpRcxwjb2sD5+KTy2/c wf4iu06urermIjgYLEgwoj13yogv6tDY4WGvnrL4NmrwX/L6J2+Uze5smkluinJOVni+ SVWFTU8PPTU/mYZ11GKG+sTou2+FIh3FSY2tKrfQfkDHfTO7il9IRu7K859S07dm8+MD vs+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h49si12787491edh.2.2019.11.11.16.35.53; Mon, 11 Nov 2019 16:36:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbfKLAfA (ORCPT + 99 others); Mon, 11 Nov 2019 19:35:00 -0500 Received: from mga09.intel.com ([134.134.136.24]:63175 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbfKLAfA (ORCPT ); Mon, 11 Nov 2019 19:35:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 16:34:58 -0800 X-IronPort-AV: E=Sophos;i="5.68,294,1569308400"; d="scan'208";a="252014011" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.157]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 16:34:58 -0800 From: ira.weiny@intel.com To: Alexander Viro , Andrew Morton Cc: Chris Mason , Josef Bacik , David Sterba , Jaegeuk Kim , Chao Yu , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Trond Myklebust , Anna Schumaker , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-mm@kvack.org, Ira Weiny Subject: [PATCH 1/2] fs: Clean up mapping variable Date: Mon, 11 Nov 2019 16:34:51 -0800 Message-Id: <20191112003452.4756-2-ira.weiny@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191112003452.4756-1-ira.weiny@intel.com> References: <20191112003452.4756-1-ira.weiny@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Ira Weiny The mapping variable is not directly used in these functions. Just remove the additional variable. Signed-off-by: Ira Weiny --- fs/f2fs/data.c | 3 +-- fs/iomap/swapfile.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index ba3bcf4c7889..3c7777bfae17 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3146,8 +3146,7 @@ int f2fs_migrate_page(struct address_space *mapping, /* Copied from generic_swapfile_activate() to check any holes */ static int check_swap_activate(struct file *swap_file, unsigned int max) { - struct address_space *mapping = swap_file->f_mapping; - struct inode *inode = mapping->host; + struct inode *inode = swap_file->f_mapping->host; unsigned blocks_per_page; unsigned long page_no; unsigned blkbits; diff --git a/fs/iomap/swapfile.c b/fs/iomap/swapfile.c index a648dbf6991e..80571add0180 100644 --- a/fs/iomap/swapfile.c +++ b/fs/iomap/swapfile.c @@ -140,8 +140,7 @@ int iomap_swapfile_activate(struct swap_info_struct *sis, .sis = sis, .lowest_ppage = (sector_t)-1ULL, }; - struct address_space *mapping = swap_file->f_mapping; - struct inode *inode = mapping->host; + struct inode *inode = swap_file->f_mapping->host; loff_t pos = 0; loff_t len = ALIGN_DOWN(i_size_read(inode), PAGE_SIZE); loff_t ret; -- 2.20.1