Re: [PATCH v5 3/9] mm/khugepaged: rename mthp_present_ptes bitmap to eligible_ptes
From: Lance Yang
Date: Thu Oct 15 2026 - 00:39:18 EST
On Wed, Oct 14, 2026 at 06:11:36PM +0100, Kiryl Shutsemau (Meta) wrote:
>The name says less than the bit means. A set bit means not only that the
>PTE is present, but also that it passed the other checks: uffd,
>lazyfree, anonymity, sharing. The PTE can be considered a collapse
>source.
>
>mthp_collapse() then reads the bitmap starting at the PMD order, so the
>bitmap is not specific to mTHP either.
>
>Name it for what a set bit means, and update the comments that named it.
>
>No functional change.
>
>Assisted-by: LLM
>Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
>Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
>Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
>Signed-off-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
>---
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>