Re: [PATCH 02/12] mm: khugepaged: drop the hugepage_madvise()
From: Barry Song
Date: Fri Sep 18 2026 - 01:33:27 EST
On Fri, Sep 18, 2026 at 11:58 AM Baolin Wang
<baolin.wang@xxxxxxxxxxxxxxxxx> wrote:
>
> After commit 2fd4e7693674 ("mm: fix incorrect vm_flags usage when checking
> allowable orders for tmpfs"), hugepage_madvise() no longer calls any
> khugepaged related functions and only updates the VMA flags. So remove this
> helper and update the VMA flags directly in madvise_update_vma(), which
> simplifies the code.
>
> Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> ---
LGTM,
Reviewed-by: Barry Song <baohua@xxxxxxxxxx>