Re: [PATCH v5 9/9] mm: switch deferred split shrinker to list_lru

From: Lance Yang

Date: Mon Jun 01 2026 - 07:10:48 EST




On 2026/6/1 18:39, Lance Yang wrote:

On Wed, May 27, 2026 at 04:45:16PM -0400, Johannes Weiner wrote:
[...]
diff --git a/mm/memory.c b/mm/memory.c
index 135f5c0f57bd..f22e61d8c8de 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -5222,6 +5222,10 @@ static struct folio *alloc_anon_folio(struct vm_fault *vmf)
folio_put(folio);
goto next;
}
+ if (order > 1 && folio_memcg_alloc_deferred(folio)) {
+ folio_put(folio);

Missing a MTHP_STAT_ANON_FAULT_FALLBACK bump here?

Since we jump straight to fallback and end up at order-0 :)

Sorry for the noise, I missed the earlier discussion. Never mind this one, please.


+ goto fallback;
+ }
folio_throttle_swaprate(folio, gfp);
/*
* When a folio is not zeroed during allocation
[...]

Cheers, Lance