[PATCH 05/13] mm: convert THP VMA flag tests to use vma_flags_t

Lance Yang lance.yang at linux.dev
Fri Nov 6 06:03:20 UTC 2026


On Thu, Nov 05, 2026 at 09:30:56PM +0000, Lorenzo Stoakes (ARM) wrote:
>Replace use of the legacy vm_flags_t flags with vma_flags_t values where
>VMA flags are tested directly in the THP and khugepaged logic.
>
>The thp_vma_allowable_orders() family of functions, hugepage_madvise() and
>khugepaged_enter_vma() continue to take legacy flags for the time being.
>
>Also update BUG_ON()'s to VM_WARN_ON_ONCE() while here.
>
>No functional change intended.
>
>Signed-off-by: Lorenzo Stoakes (ARM) <ljs at kernel.org>
>---

Reviewed-by: Lance Yang <lance.yang at linux.dev>



More information about the Linux-security-module-archive mailing list