[folded-merged] mm-avoid-unnecessary-lru-drain-for-wp_can_reuse_anon_folio-fix.patch removed from -mm tree
Andrew Morton <[email protected]> Tue, 04 Aug 2026 18:10:53 -0700
| Newsgroups | org.kernel.vger.mm-commits |
|---|---|
| Message-ID | <[email protected]> |
The quilt patch titled
Subject: mm: rename in_lru_cache to maybe_in_lru_cache
has been removed from the -mm tree. Its filename was
mm-avoid-unnecessary-lru-drain-for-wp_can_reuse_anon_folio-fix.patch
This patch was dropped because it was folded into mm-avoid-unnecessary-lru-drain-for-wp_can_reuse_anon_folio.patch
------------------------------------------------------
From: "Barry Song (Xiaomi)" <[email protected]>
Subject: mm: rename in_lru_cache to maybe_in_lru_cache
Date: Wed, 8 Jul 2026 22:46:43 +0800
!folio_test_lru(folio) doesn't necessarily mean folio is in lru cache. so
let's put "maybe" prefix.
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Barry Song (Xiaomi) <[email protected]>
Suggested-by: David Hildenbrand (Arm) <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Chris Li <[email protected]>
Cc: Kairui Song <[email protected]>
Cc: Kemeng Shi <[email protected]>
Cc: Liam R. Howlett <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Nhat Pham <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Usama Arif <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
mm/memory.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/mm/memory.c~mm-avoid-unnecessary-lru-drain-for-wp_can_reuse_anon_folio-fix
+++ a/mm/memory.c
@@ -4174,7 +4174,7 @@ static bool __wp_can_reuse_large_anon_fo
static bool wp_can_reuse_anon_folio(struct folio *folio,
struct vm_area_struct *vma)
{
- const bool in_lru_cache = !folio_test_lru(folio);
+ const bool maybe_in_lru_cache = !folio_test_lru(folio);
const bool in_swapcache = folio_test_swapcache(folio);
if (IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE) && folio_test_large(folio))
@@ -4188,9 +4188,9 @@ static bool wp_can_reuse_anon_folio(stru
* KSM doesn't necessarily raise the folio refcount.
*/
if (folio_test_ksm(folio) ||
- folio_ref_count(folio) > 1 + in_lru_cache + in_swapcache)
+ folio_ref_count(folio) > 1 + maybe_in_lru_cache + in_swapcache)
return false;
- if (in_lru_cache)
+ if (maybe_in_lru_cache)
/*
* We cannot easily detect+handle references from
* remote LRU caches or references to LRU folios.
_
Patches currently in -mm which might be from [email protected] are
mm-avoid-unnecessary-lru-drain-for-wp_can_reuse_anon_folio.patch
mm-drop-stale-folio_ref_count==1-check-in-do_swap_page-reuse-logic.patch
mm-entirely-remove-lru_add_drain-in-do_swap_page.patch
mm-clarify-the-folio_free_swap-for-do_swap_page.patch
arm64-hugetlb-extend-batching-of-multiple-cont_pte-in-a-single-pte-setup.patch
arm64-vmalloc-allow-arch_vmap_pte_range_map_size-to-batch-multiple-cont_pte.patch
mm-vmalloc-extend-page-table-walk-to-support-larger-page_shift-sizes-and-eliminate-page-table-rewalk.patch
mm-vmalloc-map-contiguous-pages-in-batches-for-vmap-if-possible.patch
mm-vmalloc-align-vm_area-so-vmap-can-batch-mappings.patch