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

From: David Hildenbrand (Red Hat)
Date: Mon Nov 17 2025 - 06:27:16 EST


On 17.11.25 11:56, Jean Delvare 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>
---

I would have moved them to the header, but no strong opinion

Acked-by: David Hildenbrand (Red Hat) <david@xxxxxxxxxx>

--
Cheers

David