Re: [PATCH mm-unstable v1 2/5] mm: introduce is_pmd_order helper
From: David Hildenbrand (Arm)
Date: Thu Feb 12 2026 - 14:45:55 EST
On 2/12/26 03:18, Nico Pache wrote:
In order to add mTHP support to khugepaged, we will often be checking if a
given order is (or is not) a PMD order. Some places in the kernel already
use this check, so lets create a simple helper function to keep the code
clean and readable.
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Suggested-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Signed-off-by: Nico Pache <npache@xxxxxxxxxx>
arches# pick b3ace8be204f # mm/khugepaged: rename hpage_collapse_* to collapse_*
---
Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David