Re: [PATCH v3 1/3] percpu: Fix wrong chunk hints update

Dennis Zhou
2026-04-21T23:26:26Z

Hello,

On Fri, Apr 10, 2026 at 05:44:15PM +0000, Joonwon Kang wrote:
> Chunk end offset was set to a block end offset, which could prevent
> chunk hints from being updated correctly. It was observed that the chunk
> free size gets minus or shorter than the actual free size due to this.
> This commit fixes it.
>
> Signed-off-by: Joonwon Kang <joonwonkang@google.com>
> ---
> v3: Initial version.
>
> mm/percpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/percpu.c b/mm/percpu.c
> index 81462ce5866e..3ecd86096641 100644
> --- a/mm/percpu.c
> +++ b/mm/percpu.c
> @@ -1054,7 +1054,7 @@ static void pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off,
> else
> pcpu_block_update(&chunk->chunk_md,
> pcpu_block_off_to_off(s_index, start),
> - end);
> + pcpu_block_off_to_off(e_index, end));
> }

This needs a fixes tag for:

Fixes: 92c14cab4326 ("percpu: convert chunk hints to be based on pcpu_block_md")

Reviewed-by: Dennis Zhou <dennis@kernel.org>

Thanks,
Dennis

>
> /**
> --
> 2.53.0.1213.gd9a14994de-goog
>