From patchwork Fri Nov 3 07:29:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13444385 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 F19BFC4167D for ; Fri, 3 Nov 2023 07:29:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F233280010; Fri, 3 Nov 2023 03:29:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A27D28000F; Fri, 3 Nov 2023 03:29:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 669C3280010; Fri, 3 Nov 2023 03:29:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5492E28000F for ; Fri, 3 Nov 2023 03:29:17 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2636512032B for ; Fri, 3 Nov 2023 07:29:17 +0000 (UTC) X-FDA: 81415817154.23.D1744BD Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf24.hostedemail.com (Postfix) with ESMTP id ACE7C18001E for ; Fri, 3 Nov 2023 07:29:13 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf24.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698996555; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5eAPoCyw7ST93JlrloiSVZ/yrBLsJoeWkbzc0p5ovyE=; b=G8QUYIxYnFJrC911BI/I5g/VDBV4Wb8GkRqnyD+3URsiQFZu+63iyxqfYeNgvIS1HCT3np jWQI1dONjuCzbexcfpT7GgxWgkFGBWykejlyOw67UCg8CKuSFjpyD9NqsxY/5Lbh6Q3nN8 2Lx5rG513BX5gehyjdHT2v1ehpCtOsg= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf24.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698996555; a=rsa-sha256; cv=none; b=pqgwqFkltE1f/mBJzCy+X72a+90lRy2lGGXHlbHhEUJSDSm045aitbCbPNUC3AQN19lmtT +j7e/F2b4YDbjBxsLh6pA2UrvEoJkAqkm4HSFvlAjNsyYxCF6MZtNerYp2UF8R5u2sCzsU +peTamJhflM1wbt2OEfTZSzQpFeD4C0= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SMC6W4d5RzvPrQ; Fri, 3 Nov 2023 15:29:07 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 3 Nov 2023 15:29:10 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , Matthew Wilcox , David Hildenbrand , Kefeng Wang Subject: [PATCH 5/5] page_idle: kill page idle and young wrapper Date: Fri, 3 Nov 2023 15:29:06 +0800 Message-ID: <20231103072906.2000381-6-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231103072906.2000381-1-wangkefeng.wang@huawei.com> References: <20231103072906.2000381-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: ACE7C18001E X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: zgifx8mpk46knoaqojjzwajcn9t8g3gt X-HE-Tag: 1698996553-901063 X-HE-Meta: U2FsdGVkX1/OcAdxiAkkWZ4EqIil8Vk/V/CojgYlV8HaW3Utl4IFTNsPXoRnW8rXBp2Kn135xreiHOu7B8TQStNbkVOnVTRBDwiTtPuHXwwkBafWxBTDdQ3pAHLPzO3NCn9UMLHvfU51FULeeL/U1GEh8bYY8X9CAJ2VX97bGeXxo1HluJ8b7cz6ZZZC8JwFNy/H6Y0e4rAO3W3HHVpj/vYbymsVHrLQF1q+dxk+6R7fE51PulrUycdIfIb19OxmhnmNQPr9i8chE5KDfR4rFSn9fFSgdZOUOLn6vKG5z9wdZLDBH/ke3A63dCfKtt5uBYjh9x/cIjnEjEZjF+eVbyrmHfeDwtb4q5ZVqg3k9HPpk8t42jmTddQgDr6sO1U2e1M21lLiDCBTsZskcmGYsFpe6ameJ6rPVkXP23c8/+5RqXyztGQldEpP8SKpdmfLKSo4hG85xnwDIDGxo9OmubPNij3EEPfsxJmUF8kXiubAD3jl+mGeGfPf0rWZCRSkshtjtzxA5uBkNRs8KXKAbZyzBFpqUV83e3A6lchRD/aH8JByJhloGorpB+l1rcFhA6SXpYvdZmAkL9r1kfd/cmpOel465qSn9p3RwB2BBzRdND3APhAsLpUe2qLq1HsmAQyQamlmC3byCKiuikPM68+CtgsU1ml8L0XmRL4yXba25EniXkxmC/WWerhVW456ZLBWOf6ulrFDT0T9GOmaw9CRKxLBjjHD5VGFTx1GhLrc5wZZ9w2EHelRBEUhUriVBDUR96SsauKKwFOqFLYblpYnzR7I6V+BXBSPh/ATnf0A0jlZJLJXEWCgokedaD51cAkkdKI0KaPQMiGd6maxQFk6gY4eAvM/3DF8LfZJHelV1WtysN4Fz1TNVyIEnkckBoWBVyO/Or3UsgMiK185cqLHCeP7KzZ/YhPipfebhGu+z6orgjEo8Ya18v1fN8qT70yGH3Fmkma35nEzIVD Bj1ed/kK alpHsnnENP1c0aC10+tq5ow/DsgCMY9S+NaHhuT7I9JbILFERQQyY1ptJHWoRg404mRKC2OvGUfS/ccQ1Ysly05uzVaQyObSmHS9fEQDIpFJIzM25IhsN9BNuInTlP1H6EjxPTRCO+DIRoaYkdlrTf9qK4KoM0eY39ejUw7K9MF3NOaOoONQNzRGGF7FvSRe9kWbp 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: List-Subscribe: List-Unsubscribe: Since all the calls of page idle and young functions are gone, let's remove all the wrapper. Signed-off-by: Kefeng Wang --- include/linux/page_idle.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/include/linux/page_idle.h b/include/linux/page_idle.h index d8f344840643..1168d5f58ff2 100644 --- a/include/linux/page_idle.h +++ b/include/linux/page_idle.h @@ -119,29 +119,4 @@ static inline void folio_clear_idle(struct folio *folio) } #endif /* CONFIG_PAGE_IDLE_FLAG */ - -static inline bool page_is_young(struct page *page) -{ - return folio_test_young(page_folio(page)); -} - -static inline void set_page_young(struct page *page) -{ - folio_set_young(page_folio(page)); -} - -static inline bool test_and_clear_page_young(struct page *page) -{ - return folio_test_clear_young(page_folio(page)); -} - -static inline bool page_is_idle(struct page *page) -{ - return folio_test_idle(page_folio(page)); -} - -static inline void set_page_idle(struct page *page) -{ - folio_set_idle(page_folio(page)); -} #endif /* _LINUX_MM_PAGE_IDLE_H */