Re: [PATCH v2] mm/percpu: clean up callers of pcpu_obj_full_size()
From: Harry Yoo
Date: Wed Oct 21 2026 - 05:48:05 EST
On Tue, Oct 20, 2026 at 07:30:11PM -0700, Joshua Hahn 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 (full size). Make this more obvious by coalescing the
> callers of pcpu_obj_full_size() and renaming the parameter to full_size
> to distinguish between the two definitions above.
>
> No functional changes intended.
>
> Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>
> ---
Looks good to me,
Reviewed-by: Harry Yoo (Meta) <harry@xxxxxxxxxx>
Thanks!
--
Cheers,
Harry / Hyeonggon