From patchwork Fri Dec 22 20:28:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13503796 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 10FB4C4706F for ; Fri, 22 Dec 2023 20:28:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EC6D28D0013; Fri, 22 Dec 2023 15:28:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E23D28D0012; Fri, 22 Dec 2023 15:28:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC53B8D0013; Fri, 22 Dec 2023 15:28:23 -0500 (EST) 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 B886B8D0012 for ; Fri, 22 Dec 2023 15:28:23 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 937621401ED for ; Fri, 22 Dec 2023 20:28:23 +0000 (UTC) X-FDA: 81595591686.01.88D34E1 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf30.hostedemail.com (Postfix) with ESMTP id 035368001D for ; Fri, 22 Dec 2023 20:28:21 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="PmRxS/7s"; spf=none (imf30.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703276902; 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=XJHqVmT115LC4ukb52O4YlKtYYhmqN0JTST31MbrqyQ=; b=T5KxzeUfef4o9j8D2OBvIhNNIHkTZwbd5FbXTAnj5wbLYn4PAoPGd6XaFNOnMJgFTReIg/ F2zciBn2oWGdGfPnH8zFr74BLsnV0MI+idSI+iMVkJA/1/AQ7ogbHXhqMeC79/HtqYwnyh 8Fo6wZSZ7uudKbRe7lK8esXcGXn6Rr8= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="PmRxS/7s"; spf=none (imf30.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703276902; a=rsa-sha256; cv=none; b=1bD1goJR2xmg8wVuFZhU2hI+gJoVphqwqjNTH/G9SPHQ0eJcDcBYB1M/mH9kw56cCXE8c4 uXNED3g3u1KI0FbwzkTDTbge9onOtN7xSg5vZ78XQ661+k05bp/xMwzdoh3Yhg1ux/FRO7 RQkyEz+TCr7sSqy8gBwbdnbIowLAvl0= 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=XJHqVmT115LC4ukb52O4YlKtYYhmqN0JTST31MbrqyQ=; b=PmRxS/7sdwhY88Rp00avDtdtLb sODvOn3QxZNc/mq1TRV91aMLmqdmNrFDKhLS79Br6cYOqBElruuoT+nD1VzsmFdqNVrm6A1S39pFR HyQsAhWxczbVxMV3Qd//BVvPoZVTw+YZvaam+J6qLWNEf2oX1g2X33ctZvRfr0RCMIdVhkBdYIWvB 2bI7S4apXJrxNEjw4oAWNxqsDynCH7Ju/4GgWrLifV91oh8O4oUAJfbzZozRC2y3i5QSQE8pYiFl4 0RgioaHmu5ZVLLyc/pXtozsCmXCJFvQ/AWNeV/5meUNnQFcxIpQvKbTY3BCjiLZ/xjxeEwVAZcGol CXPxB/Lg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rGm7u-008xbJ-QE; Fri, 22 Dec 2023 20:28:10 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Johannes Weiner , Vlastimil Babka Subject: [PATCH 1/4] mm: Remove inc/dec lruvec page state functions Date: Fri, 22 Dec 2023 20:28:04 +0000 Message-Id: <20231222202807.2135717-2-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20231222202807.2135717-1-willy@infradead.org> References: <20231222202807.2135717-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 035368001D X-Rspam-User: X-Stat-Signature: 4yjrt51oms4fujc1cw5q8wnuiwwfnzrz X-Rspamd-Server: rspam01 X-HE-Tag: 1703276901-71385 X-HE-Meta: U2FsdGVkX1+m1nJf7USBOg3hKAjA9JnU7lQinS4QFuFrqQBgpgmvf1jdAsE4z/t7rehqO9G2C+nlkOjRihSA91bqvUJTrYeroNfD35V0rvf+OlAOA5rWV5j+Rzxdnf3qYUuYJv+TqfBqO0m/V/uUd+tZP3D6gLbDZgEZil6QxHgyYTUrr64UbiRgKAZe2c9WfgQANOMisVaiXzFWfz4z0ndK9D4x2MpZ1cKjz/7QfTpOEC1CdQCQIfdFjbwIfN/cCdQPRo5z5gpo4cyIFLQWtxRzHQigJJ0F1ClZLCQ5tcceDuhwbKFIRRsqUsob0iqZdtj4RyGtZjopQGOfgEtrHkrBBGg1BkjwHZQPbb/N0Q7yuyhB+zcrJh/wH8imFKk4JRlp9zohDcL9QBBhQiwtuhku1bUuB2KMy1sWRHIMbU7O536I7I9PYYfzZ0cwcwAUebskAY1Q1qvsVNxrQDm2F5wcbhzIZlVrxckVxR/lPjgzk5Xr1hNijgDs6rtTYfQeRAMhCOYgGYF2XPjIa7/BNU+pBEEk4F+SCamCU32YUVNqpdpdL/PqrSe+gvaBOb2029dM7C6g1fJlAM3uPzz4xytc5H7fKofEipuLbGcvlHP93GixNozjn483CNkB/IAd2C3N9LTuNfNOjfVk3clRPMs35HiSZchWd52QYy6FItRZj/kidtWVAsLlSFQfGXKfG+obIyy8JCRS8zzQhgxHGaNlTg8TPmOiM0ioTnticOBxPdCiCXn0MHarfjUvi/J9APGYIkUb4st0OUH+yh7g5jFJIQLpQz0ibcfJN+TX/oWhixYRZsXDmvuV6u2cmSsWWA3R0oGpn0B81dCihHmoenQ/KqkkQVkT/2Duyu9ZmQgXqO472fXe3lIGSoMmP3fp+FL7lYFGVGKJAYlpw38BAXWLqsBswndumuf43bCIZ8i2BLx7qg/PoZzq0SsjYEVrArBdJ181D0HxtcUozKz NCdUoyCE bExrat9ZYgpl2CNgpEY5neoynWKV/XVTUa0c3Q1XG6JDdb1BTerEh2LLjFAXi6mE0fY+tvGn1O9Wv+P0CDToNFjafvsco4GgLGfrc3Olm231jR5ZnkGpHmEyG4sV3FTjWLi5FXs6UGiZ7asBR8DziI7I3zLA2r2baudNbvR5/fQSNoLQk/oYqx8xRkg== 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 callers of these have been converted to their folio equivalents. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/vmstat.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index fed855bae6d8..147ae73e0ee7 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -597,18 +597,6 @@ static inline void mod_lruvec_page_state(struct page *page, #endif /* CONFIG_MEMCG */ -static inline void __inc_lruvec_page_state(struct page *page, - enum node_stat_item idx) -{ - __mod_lruvec_page_state(page, idx, 1); -} - -static inline void __dec_lruvec_page_state(struct page *page, - enum node_stat_item idx) -{ - __mod_lruvec_page_state(page, idx, -1); -} - static inline void __lruvec_stat_mod_folio(struct folio *folio, enum node_stat_item idx, int val) { @@ -627,18 +615,6 @@ static inline void __lruvec_stat_sub_folio(struct folio *folio, __lruvec_stat_mod_folio(folio, idx, -folio_nr_pages(folio)); } -static inline void inc_lruvec_page_state(struct page *page, - enum node_stat_item idx) -{ - mod_lruvec_page_state(page, idx, 1); -} - -static inline void dec_lruvec_page_state(struct page *page, - enum node_stat_item idx) -{ - mod_lruvec_page_state(page, idx, -1); -} - static inline void lruvec_stat_mod_folio(struct folio *folio, enum node_stat_item idx, int val) {