Re: [PATCH v2 1/2] mm/cma: Inline cma_sysfs counter hooks

From: SeongJae Park
Date: Mon Nov 17 2025 - 20:35:19 EST


On Mon, 17 Nov 2025 11:56:02 +0100 Jean Delvare <jdelvare@xxxxxxx> wrote:

> Move cma_sysfs counter hooks from cma_sysfs.c to cma.c. These
> one-liner functions are only used once each, but the compiler
> currently can't inline them because they are defined in one object and
> used in another. Letting the compiler inline these functions lowers
> the footprint and runtime cost of the sysfs interface to CMA stats
> even more.
>
> Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>

Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]