From patchwork Tue Apr 2 20:12:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matthew Wilcox (Oracle)" X-Patchwork-Id: 13614572 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 342DFC6FD1F for ; Tue, 2 Apr 2024 20:13:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 016976B008A; Tue, 2 Apr 2024 16:13:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F32E06B0092; Tue, 2 Apr 2024 16:12:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D34176B0093; Tue, 2 Apr 2024 16:12:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id ACDCF6B008A for ; Tue, 2 Apr 2024 16:12:59 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7409A12048A for ; Tue, 2 Apr 2024 20:12:59 +0000 (UTC) X-FDA: 81965690478.06.E0DFD48 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf25.hostedemail.com (Postfix) with ESMTP id CBD8CA000B for ; Tue, 2 Apr 2024 20:12:57 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=hHgsV95r; dmarc=none; spf=none (imf25.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=1712088777; 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=XgHhtlpvJ49Xweosp373tZJsyvHxh++z1AM8v71Pnes=; b=ol26zoxbfBL/lZGTC7grypXcudJ4Y+XpeU2ty/EqJlPPctSkbhmxgIiDFhsaTNqmdtltQk bYhxaEEAS9SeuxZg3jdMUd+dwLyMwmd0eElIHrkj+jsg5yGt4TilMsjzh0ts1BZDlO8b+y rZL5fBTnz3G+QFak6jQwLv+WnZyzPGM= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=hHgsV95r; dmarc=none; spf=none (imf25.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=1712088777; a=rsa-sha256; cv=none; b=aIMFbWZUPMKMPR8kylncz5Qcn9r/gPbVyNGRC57D9ppJfxW+Fd5GWNnDJjk5138mxwSecq cFwy1Iv4ubJEB7QhMHUzeGyS1bBizT11B8VegjSPkr+OFMtrkU7JqZAwz4YtP4oEJgSmRY i0e8f0Nuh8P0Mf0/WMhcdUiOjc/ecOQ= 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=XgHhtlpvJ49Xweosp373tZJsyvHxh++z1AM8v71Pnes=; b=hHgsV95re1YND5Pn+Vd6K76jiD 0JSEzVWXDoAxskW7k5TUtQE8pr1/EyqcnIjIW9mbirxrDeD2VzKD37AeUl4+kutzYrNvSfqQ8MPr3 B5p3dcaBk6f8EJTUoG7GM/XP9nwnNVh2G6/7qayZXzH/9gwjXYHHUUp7PuCk1pagf9WY/a2ZChrL8 ZESIJsjFR+mq9R7TT3KNCKihnHAAUie61zErnCeJ4uAgbcmZRGS953T57sU7k1/nPAtVcngZe3K+E kmFz28kgYOofRQn0a3IVbKvAnhnfS5nC57zpGZba4wj5vWG2AC/0CxuaXiL/bYiv9tYCTwL4VqGbI ByUM+yyw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrkV5-00000003qeF-33C2; Tue, 02 Apr 2024 20:12:55 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 3/4] mm: Remove page_idle and page_young wrappers Date: Tue, 2 Apr 2024 21:12:50 +0100 Message-ID: <20240402201252.917342-4-willy@infradead.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240402201252.917342-1-willy@infradead.org> References: <20240402201252.917342-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: CBD8CA000B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 46w1p8k6pjifrhaxn1dwjswnimzu9b4p X-HE-Tag: 1712088777-886230 X-HE-Meta: U2FsdGVkX1+ZYi1X77YpB3NC+71sbSwjdk3DClYJS6LcKRW3hSDi4wU/5tvwjs9QI5JwF+RvkU+fSBQOIFU7+/ja9OANI2xz+S7yvtplcFoCT5+qatEGk5ODdJEgQOWBEEtxg0FRLQobrXxvx3XVaV+8m5o+Cqs2xlYOO+QoSTkBddMc3I8jat78XmfMPVHg7TPWbEJZNIYu+D2QV4uuYM8XK1hBmSO8rYlMvbYsk3zACya7QUY5sM0YehwinhfWfGTXgcUYCOv01MoT5ywfO7ufLty3xRB6oNDNtoUeh1O4FyIYujIkExWL+YK4AXnHE2WSQjsyezKSGLvtbSt53LNxmq/X+oow07eZDpxxH8EuIVxz+3PhwXXKJm5pFrJjorbTV3p2YlzFFTjAYgO7k0gWWDpzlQg4oIOB1/LNvEICIjDNO07swRVltLw3Xi9c7GwDmw/qDW8DW8QUBDe5gVTBEUDrRmhSklAPNCMXkC2gLxXFvUQVMQrn1SGpXWRWgRW5vv1pTu1CoIkh5nsIWVvKdmm0oYuITPT8fx5mbyfewr8BIa0uDwSVb5Vj4iRPh+q5LAFFPSomyow17YPFTCf5JBfLBiu6i5J29GHWgdjylpeDRBo/Pv1UzqGORK/ygWJtc6TQOXveDIVoDtU+YLDGnJqtOKLR7cIPvUOjTphfR2GqW0KizQ/ckcp65Vm3JsoVjLT1DWHhOVIN5Sknw7k65o8mT3t9Fw3cAyVgXYO1E/KsRscnMtrCdZqAwo1icp4UQAs8jDrh5lz9HbufUNvc8tiCfp7nTBbEYW4faEKjAjHS6FW/cUKg8ZVJzqW1JxJPhJTribQCcJadRif06xj4z3tS+kT2qAsraStD82eRQJ+exMrO2P4JWVKjY/qXtZPghjoetw2MSGNSAgUhQw1nEF0HhE+nQlV4uxVnPM5E2p7HMUfUKKk++ZkRO925KnH7XEFfVhIHS/rvnYR 8GSLiYga 3qHmzXztvaMPp4VhgyocYv+xYuaC08RM3M2tf5O0P+hbn1rWuVAGO5J43BDUYfqgDBJD8ALZ1npRbuIBwc9GFedI39CwvNh4ov2OieixIPDLp5pGP/SBI0DLlVfReKC/fRfdS0GtjXuKe1EwW0iHviEziwY46zBFeKraMUARF+8lid5Fd6QPvPweEtwseJpMaJhPWMAPtJj53gVFCQqfb1q8cPZS7wRw+bdFT 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: All users have now been converted to the folio equivalents, so remove the page wrappers. Signed-off-by: Matthew Wilcox (Oracle) --- 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 511e22ef459f..6357f1e7918a 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 */