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=1796342829; b=dBK4FSwoU7o5t0D9nMkC8VAgygMecVfdM7UqOZRmfpDt4Z+UEOOK185Qn3EcHQZmb+jC ZAHIc+fB0Lorwtnbpn0HJgF2UPtGPWUgSgm7bamSH7FZ2NybfEki27fy8MF3IV42vCEah BVmrnqw/9cUGQXbIYSS+nxWSdNM/GzFYerDIQmAJJcjTCvExSohDKqV4wfGOYq+Hd9XLg BH96idQ/k8meg7MAzteRpdkOtY+YLfkY4m/9w30NIknR7dLllelIh3x7ftfFk82DBUxxK bSMK+ln+9+fJbAm/JwnkoNs1TIv844Urfq0iLJVcdKJ5NFGKlvFzB4SQf4QKWJgfJcw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796342829; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=yjdmLKhkP0J4ANx+Ikf+gCePMkwIVVyph03XumKKQAE=; b=rxpqcEnd7fb7OTEViHXEPoCKX3L3kEduV+re5VRyLJPYVf1CcUEnk+Mbu5etsvz7viaZ hBPKWFvq4CDOJ4UZ31R56LPpkJiQ3h3eIGffOgR+cu9fjgmnIAGbQylrzHY9eWmksIOG4 QNmWEdJdR0T6ljefR5cFo0jZowvlDp7ZXqnHxbp6bWPhEWJFP8v1HKQXhhKhHkuO3iR4e wRchTY64oPEJIAhOTvTPNZ+sOfnJIHYc+1BrbTbVM5N2I86WrVHGxJ/s9OJbyEDwYxK9k 6X0DAzrE/pB2+4HEAPvAV4bv43eT2lDKnGR999xAoq03HmfVzM1iZ68KTD8dcDZeK3g== 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=dKF1voFg; 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 B1F1B606A69D for ; Fri, 4 Dec 2026 00:07:09 +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=dKF1voFg Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CC2C1F000CE; Fri, 4 Dec 2026 00:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796342829; bh=yjdmLKhkP0J4ANx+Ikf+gCePMkwIVVyph03XumKKQAE=; h=Date:To:From:In-Reply-To:References:Subject; b=dKF1voFgRSUxaqwbjAp4qpKJV5hV8HgR2OXdmVtLEL6PW2KUsozMjtCi64O3j1jI1 6s3kA9xqRWJswj21O/4vkIihH2kcFW52yjFIOslPgaU3LcKOS5EPwIg8bMbxcrK6Ov AJm2X/rTQkqkpm0RrgvMkJUj/qKqzkVf/c3vCdF0= Date: Thu, 03 Dec 2026 16:07:08 -0800 To: mm-commits@vger.kernel.org,david@kernel.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261116-fixes_hugetlb-v2-15-4dd9e94ea9ac@kernel.org> References: <20261116-fixes_hugetlb-v2-15-4dd9e94ea9ac@kernel.org> Subject: [folded-merged] mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix.patch removed from -mm tree Message-Id: <20261204000709.2CC2C1F000CE@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/hugetlb: use tlb_can_delay_rmap() when unmapping has been removed from the -mm tree. Its filename was mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix.patch This patch was dropped because it was folded into mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush.patch ------------------------------------------------------ From: Andrew Morton Subject: mm/hugetlb: use tlb_can_delay_rmap() when unmapping Date: Fri, 27 Nov 2026 13:46:55 -0800 The combination of "mm/hugetlb: delay anon folio rmap removal until after the TLB flush" and "mm/huge_memory: flush dirty file PMDs before removing rmap" fails to build: the latter removed tlb_delay_rmap(). The old helper checked whether rmap removal could be delayed and set tlb->delayed_rmap. Its replacement, tlb_can_delay_rmap(), only checks whether delaying is supported. The state change now occurs when __tlb_remove_folio_pages_size() queues a page with delay_rmap set. Use the new predicate here. This hugetlb path already passes delay_rmap to __tlb_remove_page_size(), which calls that queueing helper. It therefore still sets tlb->delayed_rmap before the TLB flush and delayed rmap removal; no separate assignment is needed. Link: https://lore.kernel.org/r/20261116-fixes_hugetlb-v2-15-4dd9e94ea9ac@kernel.org Signed-off-by: Andrew Morton Cc: David Hildenbrand (Arm) mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/hugetlb.c~mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix +++ a/mm/hugetlb.c @@ -5559,7 +5559,7 @@ static void hugetlb_unmap_range(struct m * entries are gone, unless the mm has no users left. */ if (folio_test_anon(folio) && !tlb->fullmm) { - delay_rmap = tlb_delay_rmap(tlb); + delay_rmap = tlb_can_delay_rmap(); /* * Without delay-rmap support, just flush before * dropping the PTL. Except with MMU_GATHER_NO_GATHER _ 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 mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush.patch mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix-2.patch mm-vmstat_kunit-add-synthetic-benchmark-for-mm-stats-fix.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-fix.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