From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796343010; b=UgK4hkp17V7X49Q34S2oVkVKCF8W1ZwF4JW2VjgMBChheok0yPXmVpUeFuRBE4M2WlcF 7jwGLf4ZizMzBq+pj/vHynC04Ly/OkTz69WFJmb3vVY+YiojiW8usNdYq1wNO17aKn8EI uh5RYDtqir/4MzhnCukvaaRa2+2EL5kicD6DuF5NoMmo9aZjpFkOBQOsJ7sJMPAuj6E7e fU4WjyK/DsiFsqdDIO+Ac28yLSOr/xNsRCFTZwmHMENX5WKZ/lKCgG/t690q6NiZbnttN VPtf3CpkYW0noWHAE7IjXNI+MKuxrztSTiLRM24ImEzDqVpGM6LJBhEbrgHQ7a5sDuQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796343010; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=35uUclsbxhN5ks+dQa4CunQvW00l2FjSOuBUp2BC6aI=; b=lPaIhq3uOLnsRwDNjGgQP+fMRQULKHPiCqMNCg8pV01U4ZQ5x5nfM8RAE+QTFo7qKKuv Dak/8iXWYfy0eNio6G85WM38Rlds2XF2L7jX5ia5vfpBo/o/bcWMxyQB1Kvu/ETHUroqb NfmtNsmbW3eON8f1pY9kNs2OduCa5L0EuPZ1ACqJRMU03W++OwNxD8yKgu65nUE1bJ40s FxInp4KX2IUa7uFfaJHLrrOWyDOAnwWeROxmzijE/rqD7FavrM1gOiTgB598LMEI2XEhO nfzr7HYZ5miKKpTVxRCCDQIIXYc6TGSymUgOsHUvy/3x10bCkLh+Z/131AwmQCu9Ltw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Er73zo2O; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68245606A322 for ; Fri, 4 Dec 2026 00:10:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Er73zo2O Received: by smtp.kernel.org (Postfix) with ESMTPSA id D55E81F000CE; Fri, 4 Dec 2026 00:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796343009; bh=35uUclsbxhN5ks+dQa4CunQvW00l2FjSOuBUp2BC6aI=; h=Date:To:From:In-Reply-To:References:Subject; b=Er73zo2OuChLfl+KyREU4TdKJe9h9bQP0JHWyGQ56GKxSaTDDX6kBg9GizvJ0matp gxCM0h5+qb/L29089+0IYq/F/iExN3eTarkS88PdQKjoFxGVaT2RGdMoSFo5dC0TF3 hLljP8O5Sf3zFSb0m6uBarvwOuPFwaMGBtLEkSxM= Date: Thu, 03 Dec 2026 16:10:09 -0800 To: mm-commits@vger.kernel.org,ziy@nvidia.com,willy@infradead.org, vbabka@kernel.org,usama.arif@linux.dev,surenb@google.com, shakeel.butt@linux.dev,ryan.roberts@arm.com,roman.gushchin@linux.dev, nico.pache@linux.dev,muchun.song@linux.dev,mhocko@kernel.org, liam@infradead.org,lance.yang@linux.dev,kas@kernel.org,hannes@cmpxchg.org, escape@deepseek.com,dev.jain@arm.com,david@kernel.org, daejun7.park@samsung.com,brendan.jackman@linux.dev, baolin.wang@linux.alibaba.com,baohua@kernel.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: References: Subject: [folded-merged] mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix.patch removed from -mm tree Message-Id: <20261204001009.D55E81F000CE@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The quilt patch titled Subject: mm/huge_memory: explain memcg_data ordering during a folio split has been removed from the -mm tree. Its filename was mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix.patch This patch was dropped because it was folded into mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio.patch ------------------------------------------------------ From: Andrew Morton Subject: mm/huge_memory: explain memcg_data ordering during a folio split Date: Mon, 30 Nov 2026 21:14:59 -0800 update comment, per Zi Link: https://lore.kernel.org/r/DMMKKOIGA9UJ.353PCUUMFLCCJ@nvidia.com Signed-off-by: Andrew Morton Cc: Daejun Park Cc: Zi Yan Cc: Baolin Wang Cc: Barry Song Cc: Brendan Jackman Cc: David Hildenbrand Cc: Dev Jain Cc: Johannes Weiner Cc: Kiryl Shutsemau Cc: Lance Yang Cc: Liam R. Howlett Cc: Matthew Wilcox (Oracle) Cc: Michal Hocko Cc: Muchun Song Cc: Nico Pache Cc: Roman Gushchin Cc: Ryan Roberts Cc: Shakeel Butt Cc: Suren Baghdasaryan Cc: Tao Yi Cc: Usama Arif Cc: Vlastimil Babka mm/huge_memory.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/mm/huge_memory.c~mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix +++ a/mm/huge_memory.c @@ -3860,9 +3860,10 @@ static void __split_folio_to_order(struc #ifdef CONFIG_MEMCG /* - * In the first tail page, memcg_data still holds - * folio->_nr_pages. Lockless PFN walkers (page_cgroup_ino(), - * page_owner) read memcg_data once the page is not a tail. + * clear_compound_head() makes new_folio visible as a folio to + * lockless, reference-free PFN walkers. In the first tail page, + * memcg_data overlays folio->_nr_pages. Set it before clearing + * compound_head so readers cannot mistake _nr_pages for an objcg. */ new_folio->memcg_data = folio->memcg_data; #endif _ Patches currently in -mm which might be from akpm@linux-foundation.org are kselftest-mm-rename-read_pmd_pagesize-to-pmd_psize-fix.patch selftests-mm-check-madv_cold-and-madv_pageout-on-partly-advised-thps-fix.patch selftests-mm-retain-move-pmd-coverage-and-verify-huge-pmds.patch lib-test_xarray-check-unused-spare-node-after-range-creation.patch selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache.patch selftests-mm-memory-failure-truncate-poisoned-fuse-page-cache-before-teardown.patch selftests-mm-memory-failure-skip-poisoned-dirty-page-cache-on-nilfs2.patch selftest-mm-memory-failure-keep-page-cache-files-linked-until-cleanup.patch selftest-mm-memory-failure-keep-page-cache-files-linked-until-cleanup-fix.patch selftests-mm-memory-failure-skip-hard-dirty-page-cache-test-on-cephfs.patch selftests-mm-memory-failure-close-dirty-page-cache-files-before-unlinking-them.patch selftests-mm-memory-failure-extend-page-cache-test-files-with-pwrite.patch selftests-mm-memory-failure-write-the-whole-page-cache-test-file-for-omfs.patch selftests-mm-memory-failure-accept-eio-from-close-after-poisoning-dirty-data.patch mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio.patch xarray-fix-index-jumping-backwards-in-xas_find_marked-fix.patch alloc_tag-introduce-ioctls-to-toggle-allocation-tracepoints-fix-fix.patch alloc_tag-introduce-ioctls-to-toggle-allocation-tracepoints-fix.patch mm-vmscan-scope-freeze-writeback-skip-to-the-reclaim-target.patch mm-vmscan-scope-freeze-writeback-skip-to-the-reclaim-target-fix.patch mm-hmm-refuse-secretmem-vmas-in-hmm_range_fault-fix.patch ipc-msg-clamp-negative-msg_info-usage-counts.patch squashfs-fix-leaked-page-locks-when-page-actor-allocation-fails-fix.patch ocfs2-skip-network-flush-when-no-domain-handlers-are-registered.patch selftests-ptrace-check-that-ptrace_set_syscall_info-rejects-invalid-error-values-fix.patch lib-atomic64-separate-hashed-locks-by-smp-cache-line.patch nvdimm-btt-separate-map-locks-by-smp-cache-line.patch percpu_ref-replace-the-global-switch-lock-with-hashed-locks-fix.patch afs-do-not-put-error-pointer-after-address-lookup-failure.patch drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch