Re: [PATCH v2 2/5] mm/page_owner: add struct stack_print_ctx.flags

From: Oscar Salvador
Date: Thu Oct 09 2025 - 04:09:04 EST


On Wed, Oct 01, 2025 at 02:56:08PM -0300, Mauricio Faria de Oliveira wrote:
> Add the flags field to stack_print_ctx, and define two flags for current
> behavior (printing stack traces and their number of base pages).
>
> The plumbing of flags is debugfs_create_file(data) -> inode.i_private ->
> page_owner_stack_open() -> stack_print_ctx.flags -> stack_print().
>
> No behavior change intended.
>
> Signed-off-by: Mauricio Faria de Oliveira <mfo@xxxxxxxxxx>

Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>



--
Oscar Salvador
SUSE Labs