From patchwork Thu Jan 11 18:12:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13517690 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 7DCFDC47077 for ; Thu, 11 Jan 2024 18:12:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 13C066B00A1; Thu, 11 Jan 2024 13:12:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0758F6B00A2; Thu, 11 Jan 2024 13:12:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E09296B00A3; Thu, 11 Jan 2024 13:12:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D37F46B00A1 for ; Thu, 11 Jan 2024 13:12:41 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A6C90A2160 for ; Thu, 11 Jan 2024 18:12:41 +0000 (UTC) X-FDA: 81667825722.15.50CD743 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf02.hostedemail.com (Postfix) with ESMTP id 1233D80011 for ; Thu, 11 Jan 2024 18:12:39 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=CWJMMolU; dmarc=none; spf=none (imf02.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=1704996760; 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=L6tb+LUtt/u1QE3HcsntEhQyVLjkGvUUPfsLsWn4vPM=; b=VyTjIUHACFf+PklgS0iBvW8to/jZaYX4IZTn2lA3IjPVBvHl0oS/xr7O9PKBLR/fTrgTaF FuX9kuc6Ik+VEuhuTBVjyhhk0onzjUjc1npWhKUH3Gl1jZO1O5jGfpQWbcf648tYqH5ymF Yugk4BvCcAJvurKawVFjLiWyTPqyrJM= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=CWJMMolU; dmarc=none; spf=none (imf02.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=1704996760; a=rsa-sha256; cv=none; b=YTxLARVy8vaUYopf7d9KptZPD5tb5rE4QKRodE2m++Jr20z7bJLSRpyFJyPSJQ6qbAjDCN y/r6DTzsju+/Ar+GcJCS9QUeUIPqPLJp72sFkO3evfB6riqkEp8grWFqarEDfUpyxcrEsL WcuDTSeAxJcd2XlPU7ryux3mQTlmpL4= 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=L6tb+LUtt/u1QE3HcsntEhQyVLjkGvUUPfsLsWn4vPM=; b=CWJMMolU8eDy4VFyjXBgukvYHp Zkb/jHTQcLXtgsQ7SIKZKkFlR7kIVoJX8HTVLVG2nxR1D36anjxVv0pzqCmHZsRwGxBZaRI84RWst SnTPgcOH6u6hlBDfqTMWyg54oRoPIbNgKFVZIJN3eSwjETyjY7LKMMG4NWEsPz2y5S5w9RuuRkouG RSl3Wmv6RNYwzAUfwYr8d1Ze64e5zSXMOPXscGsEEvZd0+TgOJj4aMDwJyAJrbEChUGNDW0eXyKcq UjiCcJnq5vDwtuvJDorqsd6bDN1QRnZZLrhkHQxacLfk1CelWZXQ8GyyNdzDB0DsuahLr3xkziLPY 9B/qrzNg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rNzXR-00EWqw-BP; Thu, 11 Jan 2024 18:12:21 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , cgroups@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/4] Convert memcontrol charge moving to use folios Date: Thu, 11 Jan 2024 18:12:15 +0000 Message-Id: <20240111181219.3462852-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 1233D80011 X-Stat-Signature: hzxm3kdx69y4cdznhh5z6dncgc3e6xsj X-Rspam-User: X-HE-Tag: 1704996759-500953 X-HE-Meta: U2FsdGVkX1/Kv7syFwKsyjjY+I1q1iPBtj9jojEnk9xTNF9AFQbpeDdjaOk8Ok6VD3pawW/pURSpHbL4ewKF/OEuLUwU/s6yL79Y2xPGPIcvptOLTohIf++xz7SZnLO3uz44hVcILHsz2ini8V0OJwJtAvU1O/1rz9bnKJdm6gdMtUIFhRhXWEswQNTTOM0bBRbO3zak9w0TBkgEPQlklmL9UYQbvEACNb4uNlzpc+dQgBR2nTb6aH/6uZEJb/lgW0F+GJBCUd6vL/yw7/cuA+HssWfeKD729Vc/iLCVoNPIaq3q/XXVTvXc/5YBQVkKfQUAp+b86S/Flh4peLDc0nkWZj+7AiVQfvV9fNJo5At2FPY3WMGd/rmsVm0WNvBQEHz6JgU/kIkuD+5jWvsRCRdbH6p20BaZmMGc/uc/51c/w1BJFd7kD5w7wl/3z7jKpRDlGILWSwg/Up5c/UeuJNqrZKXY6TZ0kD6kPo2yAlbAl3Dx4qT8s0rK/w7zKHDmYrAYep5eFSz64m3qljjJQ2DhY4rAQ8ppfeeZvlyisLi6gwCInyVpg3CTt/OVukue+8SSvC5yWv/eYWeZOAaxoCgNvz2A/7yF/aIwDSE25PWixpALcMAWdKCzFn+cdtCrw7uSE7FgM1DJpiqmVUWxMbv3fDm31m//0Y/BAjS+ECv2syPkez92jHb8NA1F+fw/8tsaFeIzJ41YWrtdWrDDQj420G8rdPM8ApVt1uRre+OcEwHk0Ie0gbRyN09z/cLdB6PwaVCCoPDB9Mf3M2by3VBptTtFcJUEUaYkHedD0YHp71XHyetqe5Y3gpzwAgSkMjPyaFELoubOHNe+BzFLgcI5GC1BwdQes8CJFPz4/utnFnA/VRbAd6te+FLbraynD82w0KyB/Pgv/AgUe792ZCnwYl9VJuCo+YTa358OMDqy35pgsGUWDhUXmrl0A//5KO1Li8+9n9CDcaRynCI CyAWc1c7 0bJMrRg8RfdInMwrSfacdGNt3WWqOmIQjxKpY3oOEuW/8X4y69RPVhMHuePnvxjYXs1iXG9LwIAsoY/u/IJ99Sne/gcOaDLCpZy17hSVp3AR0lJtVSV/ANeme/g== 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: No part of these patches should change behaviour; all the called functions already convert from page to folio, so this ought to simply be a reduction in the number of calls to compound_head(). Matthew Wilcox (Oracle) (4): memcg: Convert mem_cgroup_move_charge_pte_range() to use a folio memcg: Return the folio in union mc_target memcg: Use a folio in get_mctgt_type memcg: Use a folio in get_mctgt_type_thp mm/memcontrol.c | 88 ++++++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 42 deletions(-) Acked-by: Shakeel Butt Acked-by: Michal Hocko