Re: [PATCH v2 1/5] mm/page_owner: introduce struct stack_print_ctx
From: Oscar Salvador
Date: Thu Oct 09 2025 - 04:10:11 EST
On Wed, Oct 01, 2025 at 02:56:07PM -0300, Mauricio Faria de Oliveira wrote:
> Currently, struct seq_file.private is used as an iterator in stack_list
> by stack_start|next(), for stack_print().
>
> Create a context struct for this, in order to add another field next.
>
> No behavior change intended.
>
> P.S.: page_owner_stack_open() is expanded with separate statements for
> variable definition and return just in preparation for the next patch.
>
> Signed-off-by: Mauricio Faria de Oliveira <mfo@xxxxxxxxxx>
Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>
--
Oscar Salvador
SUSE Labs