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: 163768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp864954vqs; Thu, 9 Nov 2023 19:34:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8DhMj2nbs/UarpAOaO4Ee5liWNjS++EBUpx3pEzVip/znLaTxPvFDY0xFgkjzWWfC7iUS X-Received: by 2002:a17:902:e844:b0:1ca:29f:4b06 with SMTP id t4-20020a170902e84400b001ca029f4b06mr7253833plg.2.1699587286665; Thu, 09 Nov 2023 19:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699587286; cv=none; d=google.com; s=arc-20160816; b=eKy3YHTgFaOgH7QTWSQ4MyRX6o5rR9+nTEwVSLxsd+/QR7YUz/G2/6TuVT92WjsYeT 9rBWzydmkQ9UHAjqnZSAA5pcEB6oxq+botRgnmlsCQlU/e3Y6+Mx3TdFL8w3Nl0A1vkO rVA0E/HSFhm8VuJecNsu4Fqh+afuTtf8gUgQFhPPFxg3jwfPvoVTQhT4pNzItV8uz9EN +Gpqe2i/0L3iMcW7UDTV1gjXZrL9z1hGfSaBMmCvzvxJFSsZE+wZ8/BCSoTHU9m4W6W1 QFGDKqENAqHbxnsaLZewbrTsPMwc3ratl61ClfHX2jb1qW3qSEIUhWv0TRIyi1WnXEjp rcDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5eAPoCyw7ST93JlrloiSVZ/yrBLsJoeWkbzc0p5ovyE=; fh=Ig0AqGQMuH358nWWGrnHSF2kv4xbMV1Ws+OHgkmQS6g=; b=uQd/esYSoNuyACwdeb4B59BwEm8XfdzV6HOZTQM15KQtCvUlBQKfZxje7izpA6CGpG EEj0p90ULW9wWO0xFuu/DKslCRaDaXTbqoLWQbGJzOqV/5eZK0gCRU/PNxoE5y/MJRh5 PHbfKsCXkwLO+Z5+pAMfyW5oZlhmofM1XTghoJRYH+ugoExgwm3AQyboXPeNct6feMuo jW36RVof4LE0Iv51LgJ3FgiXzFOlUxShCMp7in6iQGY7TUelS7XjsBpT7/L8EJkihnU1 Umhn21qzBjAYMLyrbb/gs/EuYlnsxqoM8YQ1j/MTSx6pOYhNlLAKLrykAhFfsj6ZigLb 4GsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j15-20020a170903024f00b001c342073f76si6815113plh.323.2023.11.09.19.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 19:34:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E2916834A771; Thu, 9 Nov 2023 19:34:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345866AbjKJDeH (ORCPT + 30 others); Thu, 9 Nov 2023 22:34:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345813AbjKJDdz (ORCPT ); Thu, 9 Nov 2023 22:33:55 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBB8744BD for ; Thu, 9 Nov 2023 19:33:52 -0800 (PST) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 09 Nov 2023 19:34:39 -0800 (PST) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782146438859590999 X-GMAIL-MSGID: 1782146438859590999 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 */