From patchwork Wed Jun 21 16:45:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13287649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1870EB64D8 for ; Wed, 21 Jun 2023 16:46:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A5768D0002; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 68F758D0007; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 351668D0005; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1351D8D0002 for ; Wed, 21 Jun 2023 12:46:06 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id CC8B140987 for ; Wed, 21 Jun 2023 16:46:05 +0000 (UTC) X-FDA: 80927332290.28.C496D20 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf08.hostedemail.com (Postfix) with ESMTP id F416416001E for ; Wed, 21 Jun 2023 16:46:03 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mY+uBPiy; dmarc=none; spf=none (imf08.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687365964; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7niWMu6g/Ga9ZksmA0zYh6a0pI2cBG5yqVDcIc9jMKw=; b=rO6ctD9uezkCwuiMdq594qew4Kxgk0YdcXaOKrfXDi9YQyf55ry0R7NJgYBEE+KjDpUPPp 4iWTxOl2EYoS3igo0AMzEogtYOr2VvB0YXy7xUayRA/okGWA52n5txM0SxnK4MhXOJP0jO RsDr0AQClVXtg3+CumY2LnzISTyWqkY= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mY+uBPiy; dmarc=none; spf=none (imf08.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687365964; a=rsa-sha256; cv=none; b=PsWrBvR73ncbImzpOmp41MvEf2gfywa1nJ5N1pzxBCZzdwwQc4e/pWauUM3+HNzOOFURn6 KWRbo1GaZENB9APb2aZDlCEoBQPsQoA0Mb1zJ9izhQnXSz8dZ012l2WOVvx+r2D7Tj7cFL enZwr16oUq8E1ZOvh6+KNEpbNgT+OZ0= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=7niWMu6g/Ga9ZksmA0zYh6a0pI2cBG5yqVDcIc9jMKw=; b=mY+uBPiycIfHNeNVplxKugqw8y ja2K6C7MvJK6a5FI2+yURLUgfwFYXZEiQLFhJKZKFoH26P6b8EqoKQNl4q/RV/1sfv1WL7OKRLXrA INno6Z7BtR+COXHsKd7SXQ6k1Df/kRG5SHduBcfxktVSs0GP9cCVaLt+gjY79DWa5MOXGMXWbYAT6 etNCZZSKWiK1mHVDNJ+WCmubynjm50iSWFRDEX+P84WWha4AngPA+I2KS8lh3AQ0Lhy0SKsmaFCKv oy8NE0qqvtkZw7y0DBgRqj6k2mTOcmX89ClyhVMXPPrdLQC/DiqTeH0jAYyZs7bulU0tpckAefW40 zJ4u14gw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qC0y1-00EjDy-P0; Wed, 21 Jun 2023 16:46:01 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org, Andrew Morton Cc: "Matthew Wilcox (Oracle)" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 06/13] mm: Remove check_move_unevictable_pages() Date: Wed, 21 Jun 2023 17:45:50 +0100 Message-Id: <20230621164557.3510324-7-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230621164557.3510324-1-willy@infradead.org> References: <20230621164557.3510324-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: F416416001E X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: guzi453nk6odpychj6sa3qt47r5qkt5u X-HE-Tag: 1687365963-379476 X-HE-Meta: U2FsdGVkX18geuquIap0m2XWBjxcIpN3nuNxOHCvXajrpK5EjvGSdXZ6iPHPB1t0YxThUsp5EKJifZhvX34rW06dfQ2RdHoAcP+8nhPKjQLN6cA+SZ/SSc/W2dmkNDfXQkLK35gmCO2oiIJ+uIxmgV9atU0Gkbw7+gu5sRVCpT56DfPETtvvK0UTITxpDnXaVXY1i090n0tB7nle4MOtOBs5Z0PkOaM1eUr6r3eqXJ2sMOMQNTVacXkBhgyNhio+q+YDPuhwOUpteZVgKIO0q/BExgjD6Vh3cI6Tmcd1u0pcTBDrPwN3zh0hNAahj5jsvsz+1nTMCQokmFh/FVp/5Fr0VNBbAeokUkFnGoQqLNplxnCsgfwyCL3AYMm88lKKDmeAss5LVWmkbGn6Mex0aVitRTi+awk6MXwlfM7ui0vLqbDGMMTShuD1YM6j8Vb8reUkzN8qD/jJpUfVWQ9p/VtA6RZyGlFS+XOtVeKgPciU/8QERagVw/dGY4vOwf/1RwWlk18fxEyeatQbvzss68agO/zC72dMigENGrPh6USxSBSNrM6z248EDrtdwIWjIM4wF7N2/MxC3bw67sav9g2W4tzB6UFobC7Rr5YAo7etiTv4gY+bxBhq+guWJ8U/c29CqeUk0NCINfEUpRR3t+NQcqXX7X4aiCDR4c1/mrgmCsWkG35UTIUTSdmVyAnkUyU/xKjMbxoHT0ML0wn1+kBAo8VSciaeZP4LkfGQFQX+TVdHurCIpQEF299DTE4f2GGL273keC8h4p9GoLlFbZHOLpuUbbT/n+UZxNYsHvH1fOHY++Tayz/qWmuZSHFj/U9Nnlpcr07ItbUGfCZRVCHG7jNnzSZ7zVsj+kEprpTZbexFAP655p/uaMZPWX9eQBqd+4Kvy1PylB+gsabTB/VJs5Gu5UWK+EnNB2ektMbGqFd0mJBBKLTAgT8aR0M38Nz6VK3PHKjI1cInloL ph+r0xOJ JwBrrdmnF0U2s/g4hUWH3xEZB6kxQw8U5XwlSQS7o+7KUx+pgz7gtHF8EL9hE5cE7reb+TOQ7jdxha4CfD4Bq5dvvXmk3Uaxo6bZ2iuTfy+wD5v09Jjbu7OhT2FB+uQGw9qALC3r4uDmtvpfJVfCmD0VYKAkUGCfApVPnLlk6Rq5aG5hd/E6h9WZxe7/b1YpkFfBngiJ3BFCkSnXPjx1aeQjlPgBeB1ItutiL X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: All callers have now been converted to call check_move_unevictable_folios(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/swap.h | 1 - mm/vmscan.c | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/include/linux/swap.h b/include/linux/swap.h index ce7e82cf787f..456546443f1f 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -439,7 +439,6 @@ static inline bool node_reclaim_enabled(void) } void check_move_unevictable_folios(struct folio_batch *fbatch); -void check_move_unevictable_pages(struct pagevec *pvec); extern void __meminit kswapd_run(int nid); extern void __meminit kswapd_stop(int nid); diff --git a/mm/vmscan.c b/mm/vmscan.c index 45d17c7cc555..f8dd1db15897 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -8074,23 +8074,6 @@ int node_reclaim(struct pglist_data *pgdat, gfp_t gfp_mask, unsigned int order) } #endif -void check_move_unevictable_pages(struct pagevec *pvec) -{ - struct folio_batch fbatch; - unsigned i; - - folio_batch_init(&fbatch); - for (i = 0; i < pvec->nr; i++) { - struct page *page = pvec->pages[i]; - - if (PageTransTail(page)) - continue; - folio_batch_add(&fbatch, page_folio(page)); - } - check_move_unevictable_folios(&fbatch); -} -EXPORT_SYMBOL_GPL(check_move_unevictable_pages); - /** * check_move_unevictable_folios - Move evictable folios to appropriate zone * lru list