From patchwork Fri Nov 10 03:33:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13452059 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 CE7CCC04A95 for ; Fri, 10 Nov 2023 03:33:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 533A64401BF; Thu, 9 Nov 2023 22:33:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4BACB4401C0; Thu, 9 Nov 2023 22:33:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3341C4401BC; Thu, 9 Nov 2023 22:33:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 13E9A4401BF for ; Thu, 9 Nov 2023 22:33:57 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id DDCB2A03DD for ; Fri, 10 Nov 2023 03:33:56 +0000 (UTC) X-FDA: 81440625672.21.2F4C8F8 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf01.hostedemail.com (Postfix) with ESMTP id 7956440010 for ; Fri, 10 Nov 2023 03:33:54 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; spf=pass (imf01.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699587235; 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=WG+Rc/9l/cy3SDJMi3ft4JfOrV0WjSK0voZH1AJ1bmO6JmgZQNI1Q/DRJNohz3KTve+JAV qk4vX6WpYyerjoqJqHClj1aMR66hZGkyhoehpIzihJltcfPvtAYpOt4oyJG7Uss5JW0cPN xcr9fYqBvXO2qmFMfTK+C34XDF9aCyA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699587235; a=rsa-sha256; cv=none; b=pmFvNkGUEn9CUSdE0qLocMxfjBa3dU3fEtCpbOntpFhLX2FcQe7OxMZwZaAcXLAWTULrdG og2YI/43NfuPC+vnsqePhPYHgvtFTYpFqKb/OXW3ka6pgc1XcQZUiHXDlbHKQDT4jFkS0D LBUIU50iA9ZCVRZYbeqG7ck70Dy1j2E= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; spf=pass (imf01.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SRPV55pKYzmXKR; Fri, 10 Nov 2023 11:30:37 +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, 10 Nov 2023 11:33:50 +0800 From: Kefeng Wang To: Andrew Morton CC: , , Matthew Wilcox , David Hildenbrand , Gregory Price , Kefeng Wang Subject: [PATCH v2 7/7] page_idle: kill page idle and young wrapper Date: Fri, 10 Nov 2023 11:33:24 +0800 Message-ID: <20231110033324.2455523-8-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231110033324.2455523-1-wangkefeng.wang@huawei.com> References: <20231110033324.2455523-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 7956440010 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: qriy5e5kaqejb4aphoio34amk89u8nny X-HE-Tag: 1699587234-768579 X-HE-Meta: U2FsdGVkX1+tB8+NquxcXBXgjM+6dZkQ3aIcBMSs1YTUpXQ+xRtnTc32mIP6B+9vtWVp2P0oFuzPj44XXxk6zwSBv8ocAgKPsT/tYccypvUmKb04El9qYlr1AZGUM69FjLFQ+QtNVII1jNCBoJT7Ep6YLYoIgu9mELlfpESvudoojxJCQPdolXmFHVbLduTiy783d6CxoykC6Th2DHx8kFe1aQsVZVyMZlKOxLGCgPw2k3aQAw3XKmp20ld2k+BxdL/nlfjzY5SCjS0NUrpHOzSf50fmaDChjKiCAsnQhKOlrQzxRXuTQrrL5pDM/qKDOfxBpe838qO2GysK7oyOamfFaS7wMa24G0swK0uPv5m34B3LqalyniDslsvEwfHXS21ZuCR8rtGsVjyzsTEZfCnFrchPKECvfmfTPNWKxpHGDawCBAcT+XRdQ3LI4BgRhRm6X5ByAOL19K0OhcX+zxKOn+A1qvkmZoP0UuI2zXQLijTtHjwjFWhEBHNqQ5Dtbb401ApKteMk2ZILMGYvNBFFhsvPSztj0orJBrFWw2MYlEwJWm3KcmYXmdHZgZL9MYoRJXMUuYY1/JQAiYwF8vD9R3nON0YsSp7rOPvAzsw7edOJebl3rlTSimJ8dewsmmuGczBp4OdKLvwRDmuS8PGh+hGN6TmSoSVspYqksGPi+azqTLiSQZe9rDR8D7bm3WH+l7zb56fC/782fHKNb+Nw+9oQXbc5d8HmSUpeuAT57tdPnaCvDp9oafq6wlwDdKlr3AYWAm/ULAVE5iWrNF0rt2PTSC3hetHFs/zbO43qacmDQLak8y5lQboJ3ikTUCKyAKXTYJ+G7KGn+/e+kdTrGKImdsnWBlDpDL8hHR0xkNaKi02y36mhRrtrkZNewkTyd5Gf+Ocq+62wvVOgUsHoEXrevv0OSU9vMny7AhrIHa7XAdelhQqQz1xb6iC6nvPHyU7RkurMlPG9HXs HTuqdRl0 0yWL2jWUyq0/0DvIxxJR91n0Hqkt3UqCKjl/mlKeXKbmDjgVIQskrotMrtf16nyLnFv0vHy/WKGgtEkYwh8066KZb8RozVNpnLdPn7Sfr+kmZ8xzJ9TnF24bbFxsttjbVamV2Hsf/eHkL4eKaEKXhoshu+I4+0Bl7nHMtO1U/Ci9KKjHAc/eqLLQkMkIsfhYI1z9G 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 */