Re: [PATCH v2 1/1] mm: skip mlocked THPs that are underused early in deferred_split_scan()

From: Usama Arif
Date: Mon Sep 08 2025 - 10:28:37 EST




On 08/09/2025 10:07, Lance Yang wrote:
> From: Lance Yang <lance.yang@xxxxxxxxx>
>
> When we stumble over a fully-mapped mlocked THP in the deferred shrinker,
> it does not make sense to try to detect whether it is underused, because
> try_to_map_unused_to_zeropage(), called while splitting the folio, will not
> actually replace any zeroed pages by the shared zeropage.
>
> Splitting the folio in that case does not make any sense, so let's not even
> scan to check if the folio is underused.
>
> Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
> Signed-off-by: Lance Yang <lance.yang@xxxxxxxxx>
Acked-by: Usama Arif <usamaarif642@xxxxxxxxx>