# Re: \[PATCH 05/13\] mm: convert THP VMA flag tests to use vma\_flags\_t

- From: Barry Song \<baohua@kernel.org\>
- Date: 2026-11-06 04:01:19 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17875484
- Thread: https://ratatoskr.run/linux-mm/2026/11/17874173/t.md

```text
On Fri, Nov 6, 2026 at 5:33 AM Lorenzo Stoakes (ARM) [ref] 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@kernel.org>
> ---

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