Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2452531imm; Sat, 16 Jun 2018 19:11:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL38z6rD+TL+N0So6NwODTl2xV9nLKB09wIYkDXa3TbSLkDhi72bFu71vYJsb1f4Ov4+bDu X-Received: by 2002:aa7:85c9:: with SMTP id z9-v6mr7987766pfn.55.1529201489415; Sat, 16 Jun 2018 19:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529201489; cv=none; d=google.com; s=arc-20160816; b=ibV0NOHpEeJhOAmXu85vnVT2oNacnfy3vd6/jbinIxaUW6lf3+WMKM5HkGSMi/8HSw ysa2Hyjnwn9XxUi33jApCjSAVWMuw/b1jA35x02v+U224BUP6CSIK3osw5OLOfHY2qhs uF6R26L4cb3Rl24Y6k9Opkh8LnrzHzokv7XmlwukrKCERVdwZ12TaxAxKhNzozrsksNh G+2GDCd9PJjTuzFA/yA+XTab8x6QFI9XoZBLSWPshyZ1k4XInDbsfFTeW8bUJMG0frDC Xv4gjDSNlhG61nVVVx4C5OnRiz5DMbmz+81Xm/6G+lByyz5HBTh4Px5Dq547JMw0xwO2 0Vkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=QGWajXY6YcCVi/fqymIb3c788sAMALnbzKJrf6tBoCc=; b=jnB0GG09Szs4OE8IoDxDi8Yfk5OmpidJaCuU6WW5tYfjMWNZMO+OS9kXJ0mA5RSl4T pRn947POR9q8CPPj5pbThVMUBQ1M358b+JlaPNPsjsgqgu9VGwLocTX7Pr0591dMc8NG 23tFdVgVMYC5moBs4JgW+ytsoP5CchEzI4fWr/PWXS+auzQQ+2pGqf9MqeqEYBZNYFAA tP1J8Lm4qH5bs1QoB4uF0oCHqFeiTU8O3Sr5SUUe8VSlmkJsH9WhhduYvdHOQ/aS9YPR ZzUp4FW7bWO0fuJoJPv24/UV+/sVfo5DwIG4ogcKjmHsEjsyH1edYnTAe5LCp/ARHWm9 melA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="SgMqnn/8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si9169970pgc.261.2018.06.16.19.11.14; Sat, 16 Jun 2018 19:11:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="SgMqnn/8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936517AbeFQCJ6 (ORCPT + 99 others); Sat, 16 Jun 2018 22:09:58 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59144 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933944AbeFQCBI (ORCPT ); Sat, 16 Jun 2018 22:01:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QGWajXY6YcCVi/fqymIb3c788sAMALnbzKJrf6tBoCc=; b=SgMqnn/8xfz2IiRU7lHnx/TBQ aMfcp0dcLWY+F41KJ9xNXcl1kVHMcfojiyv+6mfWW+nsqMK1cJmfmtywd8rZN6kbXZqOzrTNRgLbn IKdpY99/3Bcwf4wIluHRrERHG/bvPiBcKAH6QinISQUF0FAM0DMybtSx4WvKotbChxSzbiNfq3PTi VFgg4eUMGRdQs3NjKJnoStI5jRB7D3/nrEFx8tFWIwZhyMd2IOTFvjN2UJhGb1b2x0NFwNeGCntMx PeAAkzImw2KNN5zdCmvdMwwSGXv6dibwUL/4qjfWLtHB35ute1Z8LY3HSnUF59S/c3g54vG3B++7W DGGYIMFFA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUN07-0001N4-BU; Sun, 17 Jun 2018 02:01:07 +0000 From: Matthew Wilcox To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Matthew Wilcox , Jan Kara , Jeff Layton , Lukas Czerner , Ross Zwisler , Christoph Hellwig , Goldwyn Rodrigues , Nicholas Piggin , Ryusuke Konishi , linux-nilfs@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v14 45/74] mm: Convert is_page_cache_freeable to XArray Date: Sat, 16 Jun 2018 19:00:23 -0700 Message-Id: <20180617020052.4759-46-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180617020052.4759-1-willy@infradead.org> References: <20180617020052.4759-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is just a variable rename and comment change. Signed-off-by: Matthew Wilcox --- mm/vmscan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 0448b1b366d9..575747728ee6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -572,12 +572,12 @@ static inline int is_page_cache_freeable(struct page *page) { /* * A freeable page cache page is referenced only by the caller - * that isolated the page, the page cache radix tree and - * optional buffer heads at page->private. + * that isolated the page, the page cache and optional buffer + * heads at page->private. */ - int radix_pins = PageTransHuge(page) && PageSwapCache(page) ? + int page_cache_pins = PageTransHuge(page) && PageSwapCache(page) ? HPAGE_PMD_NR : 1; - return page_count(page) - page_has_private(page) == 1 + radix_pins; + return page_count(page) - page_has_private(page) == 1 + page_cache_pins; } static int may_write_to_inode(struct inode *inode, struct scan_control *sc) -- 2.17.1