Re: [PATCH] mm/percpu: clean up callers of pcpu_obj_full_size()
From: Joshua Hahn
Date: Mon Oct 19 2026 - 13:33:09 EST
On Mon, 19 Oct 2026 09:28:02 -0700 Joshua Hahn <joshua.hahnjy@xxxxxxxxx> wrote:
> The size of a pcpu allocation can be interpreted in two ways:
> 1. The size of the allocation attributable to a single CPU.
> 2. The total size of the allocation across all CPUs, including the
> allocation overhead (for obj_cgroup membership).
>
> In most accounting paths for percpu memory, we need the second
> definition (total size). Make this more obvious by coalescing the
> callers of pcpu_obj_full_size().
>
> No functional changes intended.
>
> Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>
This is a follow-up to Harry's fix [1] and is intended for the next
cycle. Sorry that I did not make this clear in the original patch!
[1] https://lore.kernel.org/linux-mm/20261013-fix-alloc-percpu-accounting-v1-1-03e788a1e41f@xxxxxxxxxx/