From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E606A2FA0ED for ; Mon, 24 Nov 2025 23:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764025835; cv=none; b=N35/ocB8cymt8Qyv7qeD/aOemjFzKJkHJbVgCd8DgN6jVP4gar5WhVs4+e5P5PjnUdtduFmXPkZrIQu1PVp5TPHXv7iHiHrqfuNKlWQYsgZDNabAMPg2j3MSAax6fGTc5nOd8k9Cx3JVxo2muPeH7mWmG7y7Ks97FruupENcVss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764025835; c=relaxed/simple; bh=bBJuUzRZhEDhvlfRZN3Z/KxR7aEtptwOs+8Rn56vIkc=; h=Date:To:From:Subject:Message-Id; b=SzXcxxp5OcPtxUpbPZm/fr61lr73u6z9gTxR/AAFrEt/nfmOpNvR3QOQfDm/DB9+1Of+OLQup/MmiME6zUVROHDEwSrd5GiWDoKaKVnYYfA/KwGyGUB3WvyDaB4KCPEAYN4fxSntYlW/eJ4fYbNHD703u5di8iPzZOiTJHB8Loc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ti//syC6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ti//syC6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B576EC4CEF1; Mon, 24 Nov 2025 23:10:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1764025834; bh=bBJuUzRZhEDhvlfRZN3Z/KxR7aEtptwOs+8Rn56vIkc=; h=Date:To:From:Subject:From; b=ti//syC6FAeQyUS/m8A5Tbn3EOXRSdRRtT6/EmSedkVBxYPR2Po7v4DGcioPjA3oP s2BzGpJa5ycXcyRElccrOna4UOxEh1U1R5sCEHr1n955hf45at2plwsZVaIJI+9HxH Er0CeM9Y6NXa44rShU1q2R9RfcqFBoUmNGHB8+JQ= Date: Mon, 24 Nov 2025 15:10:34 -0800 To: mm-commits@vger.kernel.org,ziy@nvidia.com,zhengqi.arch@bytedance.com,shakeel.butt@linux.dev,ryan.roberts@arm.com,roman.gushchin@linux.dev,richard.weiyang@gmail.com,npache@redhat.com,muchun.song@linux.dev,mhocko@suse.com,lorenzo.stoakes@oracle.com,liam.howlett@oracle.com,lance.yang@linux.dev,hughd@google.com,harry.yoo@oracle.com,hannes@cmpxchg.org,dev.jain@arm.com,david@redhat.com,baolin.wang@linux.alibaba.com,baohua@kernel.org,songmuchun@bytedance.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] mm-thp-replace-folio_memcg-with-folio_memcg_charged.patch removed from -mm tree Message-Id: <20251124231034.B576EC4CEF1@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: mm: thp: replace folio_memcg() with folio_memcg_charged() has been removed from the -mm tree. Its filename was mm-thp-replace-folio_memcg-with-folio_memcg_charged.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Muchun Song Subject: mm: thp: replace folio_memcg() with folio_memcg_charged() Date: Mon, 10 Nov 2025 16:17:55 +0800 Patch series "reparent the THP split queue", v6. In the future, we will reparent LRU folios during memcg offline to eliminate dying memory cgroups, which requires reparenting the THP split queue to its parent memcg. Similar to list_lru, the split queue is relatively independent and does not need to be reparented along with objcg and LRU folios (holding objcg lock and lru lock). Therefore, we can apply the same mechanism as list_lru to reparent the split queue first when memcg is offine. The first three patches in this series are separated from the series "Eliminate Dying Memory Cgroup" [1], mainly to do some cleanup and preparatory work. The last patch reparents the THP split queue to its parent memcg during memcg offline. This patch (of 4): folio_memcg_charged() is intended for use when the user is unconcerned about the returned memcg pointer. It is more efficient than folio_memcg(). Therefore, replace folio_memcg() with folio_memcg_charged(). Link: https://lkml.kernel.org/r/56624d537520e33e5a6b3755238b3dfb959a52ee.1762762324.git.zhengqi.arch@bytedance.com Link: https://lore.kernel.org/all/20250415024532.26632-1-songmuchun@bytedance.com/ [1] Signed-off-by: Muchun Song Signed-off-by: Qi Zheng Acked-by: Johannes Weiner Acked-by: Shakeel Butt Acked-by: David Hildenbrand Reviewed-by: Roman Gushchin Reviewed-by: Harry Yoo Cc: Baolin Wang Cc: Barry Song Cc: Dev Jain Cc: Hugh Dickins Cc: Lance Yang Cc: Liam Howlett Cc: Lorenzo Stoakes Cc: Michal Hocko Cc: Nico Pache Cc: Ryan Roberts Cc: Wei Yang Cc: Zi Yan Cc: Muchun Song Signed-off-by: Andrew Morton --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/huge_memory.c~mm-thp-replace-folio_memcg-with-folio_memcg_charged +++ a/mm/huge_memory.c @@ -4127,7 +4127,7 @@ bool __folio_unqueue_deferred_split(stru bool unqueued = false; WARN_ON_ONCE(folio_ref_count(folio)); - WARN_ON_ONCE(!mem_cgroup_disabled() && !folio_memcg(folio)); + WARN_ON_ONCE(!mem_cgroup_disabled() && !folio_memcg_charged(folio)); ds_queue = get_deferred_split_queue(folio); spin_lock_irqsave(&ds_queue->split_queue_lock, flags); _ Patches currently in -mm which might be from songmuchun@bytedance.com are