Re: [PATCH v2 1/4] mm/page_alloc/vmstat: Simplify refresh_cpu_vm_stats change detection
From: Christoph Lameter (Ampere)
Date: Wed Sep 24 2025 - 18:52:12 EST
On Wed, 24 Sep 2025, Joshua Hahn wrote:
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index d1d037f97c5f..77e7d9a5f149 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -2561,10 +2561,10 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order,
> * Called from the vmstat counter updater to decay the PCP high.
> * Return whether there are addition works to do.
> */
> -int decay_pcp_high(struct zone *zone, struct per_cpu_pages *pcp)
> +bool decay_pcp_high(struct zone *zone, struct per_cpu_pages *pcp)
> {
> int high_min, to_drain, batch;
> - int todo = 0;
> + bool todo;
todo = false
is needed here.