Re: [PATCH mm-unstable v1 2/5] mm: introduce is_pmd_order helper

Barry Song
2026-02-13T03:51:44Z

On Thu, Feb 12, 2026 at 10:19 AM Nico Pache <npache@redhat.com> 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@oracle.com>
> Suggested-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
> Signed-off-by: Nico Pache <npache@redhat.com>

LGTM,

Reviewed-by: Barry Song <baohua@kernel.org>