Re: [PATCH v3 1/5] mm/vmscan: track reclaimed pages in reclaim_stat
From: Barry Song
Date: Fri Apr 10 2026 - 20:05:07 EST
On Fri, Apr 10, 2026 at 9:04 PM Zhang Peng <zippermonkey@xxxxxxxxxx> wrote:
>
> From: Zhang Peng <bruzzhang@xxxxxxxxxxx>
>
> shrink_folio_list() returns nr_reclaimed while all other statistics are
> reported via reclaim_stat. Add nr_reclaimed to reclaim_stat and change
> the function to void for a consistent interface.
My gut feeling is that the existing code is better.
There’s no need to enforce consistency across all cases,
since the function can only return a single value rather
than a structured set of statistics. It is also clear that
it returns the number of reclaimed pages.
Best Regards
Barry