Re: [PATCH mm-unstable v2 2/5] mm: introduce is_pmd_order helper
From: Baolin Wang
Date: Thu Feb 26 2026 - 03:57:10 EST
On 2/26/26 9:29 AM, Nico Pache wrote:
In order to add mTHP support to khugepaged, we will often be checking if aReviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
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.
Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>
Reviewed-by: Barry Song <baohua@xxxxxxxxxx>
Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
Reviewed-by: Pedro Falcato <pfalcato@xxxxxxx>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Suggested-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Signed-off-by: Nico Pache <npache@xxxxxxxxxx>
---