Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4117509imm; Mon, 11 Jun 2018 07:17:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI3IioFAiK2lxdoPpgjxxcm0cEoXg4WexovxTvaMdfzVAg3yOqj76CndadJWimxKVNK/ibE X-Received: by 2002:a63:7707:: with SMTP id s7-v6mr15322660pgc.426.1528726632713; Mon, 11 Jun 2018 07:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528726632; cv=none; d=google.com; s=arc-20160816; b=jANB8VfrneLL1NLaElYe3HAZ9k4yVFDJp6CdEU5kso3/lFUYVR7uM0dmLaD92Dx8gS e97lyxUCJDd0Wo6+IXpYw1nWM5ckcmCl0Qhea1rI/+BwsEu0BJd4zqmu5eWqwk7YhXII ns4bA5JPgJDSpA/7WRyRvN9XRhBO3EB4HxZLh16jN51mhLQr1631ElzOgZXhdWYNP6YH 4hduwsksmMmxypu8aE3wqdTX0yZBef+IVYqCll/O+oKZt/y/sjtA9mP98kbIn+Kofxjz cq0vckPCZ8g+DOk9g4cWX4UJXPuoq8YSy7umH46Efxx6FWeIzHyT6SvI//xegHH60xQy rb+Q== 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=cp1noagiBNyq9HAsILQXj5VlZgjwOoF7k27YeP6vh0Y=; b=HFzsGfryqAZS/83G/InxM9HjMha+DQ1OUh2cHrhwsTMzBLOkJHAETlOg3XCN3WNm0e t9uufVYdSjQ+9hQk4K/gX3fkq1pDFdPVAQiJi93Dcux235r9+RRqVEulLXX+t/NIPeWd wD886gGDZBxt6kQgrRrh7a2LOwOkMcYhU9u93LjxsJ6nUwvWxLWJgtYnolxwYekukaWb UV9HicU9XlcZYhNzki7Yunib0rJ3hQAhYf5vHetU1LHgGyLV9tnF3rthc7Gk8qwea74L tBUn5w8sQzsHpxoiTTDYnLjI+vZHV81fh5N3zLO6wyp60U21m2emv1LU3++kHKSbi8+5 PbvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=SxnE1mBa; 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 y1-v6si62041802plt.316.2018.06.11.07.16.57; Mon, 11 Jun 2018 07:17:12 -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=SxnE1mBa; 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 S934038AbeFKOPx (ORCPT + 99 others); Mon, 11 Jun 2018 10:15:53 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45972 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933570AbeFKOHB (ORCPT ); Mon, 11 Jun 2018 10:07:01 -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=cp1noagiBNyq9HAsILQXj5VlZgjwOoF7k27YeP6vh0Y=; b=SxnE1mBapiL1y28hZwNeGhwJ/ 09GiEhWbiib7/g4Cf75aq6Mmb1CR7cHxMapWj7kfybfOHAnN4e8Z/pRh0APfHIQ8UORSfvNeE4yAT OgRbmoYJ5MsXrO7CXw1orPGIwM61vo6P8lAv+KtPFjAZF4KsMOU0C6rHaXJG7/QUHP67Xst6/T1j3 kKeGvrj03NUAd30r20e6DEpV3rYn/8f6mNT07W8BPtRbJFcJjBA2wsF31eiThUGDptumCq90fytF8 99wUYAh4T4zj5KSBLms74ym6yGsbRfaL2G7ODSleL9hApFG3JeXlnoD35k2xeeOQ45RfrFk3M1t2Y zPgRHySzA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fSNTI-0004pL-7n; Mon, 11 Jun 2018 14:07:00 +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 v13 44/72] mm: Convert is_page_cache_freeable to XArray Date: Mon, 11 Jun 2018 07:06:11 -0700 Message-Id: <20180611140639.17215-45-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180611140639.17215-1-willy@infradead.org> References: <20180611140639.17215-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox 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