From patchwork Thu Dec 28 08:57:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13505695 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 1D1B8C3DA6E for ; Thu, 28 Dec 2023 08:58:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 58D678D000A; Thu, 28 Dec 2023 03:57:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 53CE78D0009; Thu, 28 Dec 2023 03:57:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B9E58D000A; Thu, 28 Dec 2023 03:57:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 22E408D0001 for ; Thu, 28 Dec 2023 03:57:59 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E7A31C0811 for ; Thu, 28 Dec 2023 08:57:58 +0000 (UTC) X-FDA: 81615624636.06.B51AC6A Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id 0A32D20003 for ; Thu, 28 Dec 2023 08:57:55 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=PcKdcrVV; spf=none (imf03.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=1703753876; 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=YM4eF3wHtgxUUl6DVdYGE44SrVWHR0bbiZvU+tl+O0gJjm4Qh3fRofi1j/opyhs+jOXRSv seGovEYp7ckTsRB/TXW0STYnVJ5jRveaOibXC/asYEHf80QM79iXezMu6UxXjZbaQnhIZk /c875OKFH88NVSuOvSmimbL8UhJnWh4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703753876; a=rsa-sha256; cv=none; b=WOmCaKqwln1uy3dZU5/n9pfzDVg29oI31GSWQNuPWpf3lls7G9EJptiosGzn4j8xTc202P ai0FoQQnU8aHVvvZU4gFnoUkiptIpWG/wIkOswVuuPxmL9UOtrYUkWlC97WsmE1WI0qEN/ 3fDgl3hdSZ9waH+bPMFmZ5MmxzvqzEg= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=PcKdcrVV; spf=none (imf03.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none 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=PcKdcrVVqZHu4CYd3nHefqHtIh xhd4tLp2e1x02i0Xm6mJ1nYxZyhZmkwyQJmttiWlFmXLypPUOz4aFpe1lHEljmAK2v+4tnNFBDo5W k4z9+MN68w3KFk3qxS4Cpc8wMkZfm5zvZ1XLgJTPfkAkH+zPJ96iNq0hhFaG2ct8Pn8RtQXWH3fjP 4SNHe/HUhynWQWs9jRQy4ObD2snMkN0H3XFfDQNPeliVinwSN5ozxQTSTx9fuGU6ArPN+YmvrCNX5 oDCRyImK8t8cimVYZupj9SjG3v2xW1M19ocYeYTuVxQUKAFV9G4CFoCIlNO0fQeTP753GUNQFmCIY NfR2W4eA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rImD8-004XzC-30; Thu, 28 Dec 2023 08:57:50 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Johannes Weiner , Vlastimil Babka , Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: [PATCH v2 1/6] mm: Remove inc/dec lruvec page state functions Date: Thu, 28 Dec 2023 08:57:43 +0000 Message-Id: <20231228085748.1083901-2-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20231228085748.1083901-1-willy@infradead.org> References: <20231228085748.1083901-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 0A32D20003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 11r9ktz3ny9j338ez4bdehasjs6j8mtb X-HE-Tag: 1703753875-216421 X-HE-Meta: U2FsdGVkX1+y9Y3h2IaLBxK3EiN2KLNwFFYXWV2/W/do4lxtrGsx0EBgXpOZkl8eGqLydUX76lyRmBFv86tP/KUidwMZ8dyZeI+UPgQcEBXSCbifphadj5x3W0bEP09HHm9v3CWfrJV6dSoXjtOnXRgMbYBPn+8KK4ayUsukndvpbR1IDR2IkytY8eW2K+HT4gPVhUC0MnCtAM7WDJc9D734dYRdaX5DjRTxicE+4TJNGsE5hGnYDAEi6YArjecRvfn0YFkVAsTdFpQXdxVoVocjtPdRJaaFLprrnbqdxAPdlmGTmMIoJL1Qwdb0eXT/7AkDdVE11v2vO1Xqq44O7A5RXQ9kxLRRym50mwCNVNcD/XkEHjM40+sEgKr3NmCu2acHfMYD4HPA048Aho8jhsFpYv1NXW88o9F9TGacwnxkHOhNGJbpEICicAWzJo3rJNDelU+7Bjj6Yc/jdHvp8XOnR7fsha5UV1+vZCTxCLsbSDlnuI2u3DrUWZ+r6jteydx/7MO3jBAMgNc+Sf+9103ignueW48E0sZjBGgUzx0NbbytwDYuw4qUKLqv5LlBQ8o2lAaJQRVt3tdSNhlRlHJe6nq+7eCoeMRvstahVAkP+0k++a4WPUMaylDNjpqoYWwhc1tFg9VnDPY5aNqqxowT5wOngMrDTEmWMmqkdSwhsCasYw5kE++iR8IA/hRCleHqCWNOxmC7Kuca7NvzIha13SPQ5EtZR2j99LByEErboCyrZ5T9NNPJ6GHB67GQLHB3WhEoeh/yTyLzAf3X+BUlszeZWmz1t7pxxX9krQl6uBRIxy/iG0TykKB+3D8X3Lqnjhw0aHlX3T8ndtYy/klhv9XUSxf5mVStEN45Zza6tORXo1sxiknFaGR4adW8i6slaqYZKAkjugIF9CFVgWDzWUGwDmftm3yBOQd/FIQutBZ0WypaPeaDT/qgXIMtG8fmOqky5i2S/e/Sghp NfFbbiuG Yt71N1jT0nciqJQjdZBYuyfQZ5cnIjeuM3YjW+L4BrzA1bPbCogdEIaJJGQeWg0BiF4pIE2cGTzVNV5f0xGHRY7qWzm9n/qCsyy5y0KxJHgc+Lo755/W1+AKsDAcLTJRd3FEU6OHJeQu0BMzQwAd+OUN+8FmyMTNV/y4ijL14D5Z7p74UmfJoQFzbBCmBEXU2S6EMnFOsdjyT6ZS2hDhEhsTtvwfbNiHICA3DZz6E2+TL1y4N5JLXzDlCdw== 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) Reviewed-by: Vlastimil Babka --- 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) {