Re: [PATCH] Documentation: device-mapper: adopt new coding style of type-aware kmalloc-family

From: Jonathan Corbet

Date: Sat Jun 27 2026 - 12:30:25 EST


Manuel Ebner <manuelebner@xxxxxxxxxxx> writes:

> Change the Documentation to reflect this commit 69050f8d6d07 ("treewide: Replace
> kmalloc with kmalloc_obj for non-scalar types")
> kmalloc -> kmalloc_objs
>
> Signed-off-by: Manuel Ebner <manuelebner@xxxxxxxxxxx>
> ---
> Documentation/admin-guide/device-mapper/statistics.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/admin-guide/device-mapper/statistics.rst b/Documentation/admin-guide/device-mapper/statistics.rst
> index 41ded0bc5933..2190b90118f8 100644
> --- a/Documentation/admin-guide/device-mapper/statistics.rst
> +++ b/Documentation/admin-guide/device-mapper/statistics.rst
> @@ -30,7 +30,7 @@ region, etc. Unique region_ids enable multiple userspace programs to
> request and process statistics for the same DM device without stepping
> on each other's data.
>
> -The creation of DM statistics will allocate memory via kmalloc or
> +The creation of DM statistics will allocate memory via kmalloc_objs or

A nit, but if you're going to fix the function name, why not make it
kmalloc_objs() so that the automarkup code can do its magic?

Thanks,

jon