From patchwork Fri Dec 22 20:28:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13503795 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 8849AC47072 for ; Fri, 22 Dec 2023 20:28:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4D716B0093; Fri, 22 Dec 2023 15:28:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DFB816B0096; Fri, 22 Dec 2023 15:28:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C77126B0098; Fri, 22 Dec 2023 15:28:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B34D66B0093 for ; Fri, 22 Dec 2023 15:28:20 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8F1A1A26DD for ; Fri, 22 Dec 2023 20:28:20 +0000 (UTC) X-FDA: 81595591560.27.F028E3F Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf25.hostedemail.com (Postfix) with ESMTP id 067D3A001B for ; Fri, 22 Dec 2023 20:28:18 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=ScLSyc2W; 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=1703276899; 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:references:dkim-signature; bh=mHQpy3X9j+15Q7532PQLYKL9/ZEOXWqaV1HGFTU+FiM=; b=SSKHIugZ++2VcRx3xNVsL2l+MdrNKkBa35pGxErLhmkme+ci5iopRCKm5Gq+TCiq54fxpc wwYdcKnO0iyx7WpiWLlekWzaGrvPU/deherSVQWnWPjBjjoX0P3F7+chVZYLgcc0AnoMHg 5E4/Yoon72N8zA3QwBDbAlB9kIUZDWU= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=ScLSyc2W; 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=1703276899; a=rsa-sha256; cv=none; b=aMjwVq4L0moaTp23evlsnCySsAKTiIpgk8d45Kw5YyQLQZyd5BVF72iJ20MR00yp3bRKh2 /HV4EISflcf6unwwx0/j9T1uMlCPCoRPL/amIsYF1K+b4yvwI+4a/Qm74NpxnLW95ALWrz g4KkpTvrnsrvl+C5Njkh56EsQ4sUCZI= 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: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=mHQpy3X9j+15Q7532PQLYKL9/ZEOXWqaV1HGFTU+FiM=; b=ScLSyc2WDf+hV4o0IY87kLFdit ASNkwOzPf6dkl4Krcz/zIMg2U5sR9rI4j899+0Hsfk8tl5gn9gJNMEvLqiCf/6t3N8gf2hr9PBje1 quUgKIINDX+lGWmaaXbEWDaYdFx2NET4ZYkhbpe0uxpQp9FVcgyVKAOtSE5vfS+WihzJwb6/gfbGA HFRGxyGhJ1nW0guaNUwy+Kmh+pMMUc1W0EnrPsypQ6mhu/A/umUC0RNihqFXdX87qHb6hBLFjDcIf NV/L0zVrRHKhS+fODmlFf4hzeaGzGRkbeQDEiQxxlSc/la7PBg7Iie2RO3KGwT0SGQZjJ+v54BG7+ tD2rQNxw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rGm7t-008xbE-84; 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 0/4] Remove some lruvec page accounting functions Date: Fri, 22 Dec 2023 20:28:03 +0000 Message-Id: <20231222202807.2135717-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 067D3A001B X-Stat-Signature: jjwg6qkugu1ht1grkxmgb7dym6qypuqz X-Rspam-User: X-HE-Tag: 1703276898-933899 X-HE-Meta: U2FsdGVkX1/GsX1zfarmT9QPvYZKxRatUocV4QGV2684yuPc5dAWETRuAHCJFYiiP1UkX26lA0bIQtgNnMbrONBAvgOAXrPD23kTYGMz0I6Foo8Dxrjylh9z9y9woWNf6S6+0/K/NyI1GrylzJNKvy6FYw/T5eZn1YsbglWAJqNZYo0KGB0fthvk+iVKSIuqm3RNzuD/ukYqvuBaBjT08ZOxXVM9pC/Tji6/LEO5TVpTpB6K0CGaDGWrm9NG5IAc8+VYVPOXqCkd9/B0NuwNQZgpfpxk0AKQ1A+iKIQ4pWsET7zAOejJFOz6Tp2WfQkK7NLOg0C3Dv7HqdlNJ65fBvOHh7rzbe+4EVIBnp3o2IINbHQLGdA3AjRHCcMFUXJIwdheLIgYLlrjXb4dqNwLeEHWpuxp6oZ20JJZL7VNt8UdRWhSfiDR3MHTWKWQ910idJtkUP0HxT8NwUp6TtCPxCv90bCfPIBLxQA6X03j0RWvkCUlAgvxP4KhATorgKuqBD5PEEcMqX+CTPFwJ6/6g6Hkjw9zhv0/tQRI6IgfPzhYAij2PmuM000xhF2tl6mxgBu6JBDKsQX5qm8iV9BuZH/J+4G3xF0k37hwoFV7DTPIvcNELjMJ4Vqd0feSZgLyQd7dkJHqwsciu4BKD5//nwm5aSvyoVBfQxLX5KFyshhCd6LMnuyiKSlEMc6lZ7FGp8B0J9e4L8X0mNtLkg7OJE5ievQGFs267F9JSJaBqeJ5CXuBtvKUI9uChJ+qKBGM+WblLVoxHfE7TFEuc+Y1IBg4qzKwH6Lo0y9hllbBeV4kxrKWSLLHSH3zbrzW+SFpI3tQImC6D3yroeWiEevXkPe5XS2AxcFg60A+NBvs0XXa+7Wy5AN6G/cqySXLvXTs20KSbCjFeUZMFoYUs8aR3tMsNNp2LIn8iDfytjckn+piHkQYA/EIIDuyOdecD+I1JI/iJRnsa4ZhKNMQ5Xh M4lZcbqF 8gjTmf3Lq3Sov2zZwfdeerpZn9HIBQzEeFBLttlATEs9/exSB27AvYSZH5yJ4dnGypOC3SQCt8X/oeuK/3lOtSe7PvBdSKEWmtk81v7iFQkJwKEBOLSQgSQcagA== 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: Some functions are now unused; remove them. Make __mod_lruvec_page_state() unused and then remove it. Based on next-20231222. Compile tested only. Matthew Wilcox (Oracle) (4): mm: Remove inc/dec lruvec page state functions slab: Convert __kmalloc_large_node() and free_large_kmalloc() to use folios mm/khugepaged: Use a folio more in collapse_file() mm/memcontrol: Remove __mod_lruvec_page_state() include/linux/gfp.h | 9 +++++++ include/linux/vmstat.h | 60 +++++++++++++----------------------------- mm/khugepaged.c | 16 +++++------ mm/memcontrol.c | 9 +++---- mm/slub.c | 15 +++++------ 5 files changed, 46 insertions(+), 63 deletions(-)