Re: [PATCH] dlm: use KMEM_CACHE() in dlm_memory_init()
From: Hongfu Li
Date: Fri Jun 21 2024 - 04:08:16 EST
>>> Can the three passed name strings matter still for the identification
>>> of the created caches from this function implementation?
>>> https://elixir.bootlin.com/linux/v6.10-rc4/source/fs/dlm/memory.c#L27
>>> https://elixir.bootlin.com/linux/v6.10-rc4/source/mm/slab_common.c#L362
>>
>> probably only for "dlm_cb" that turns into "dlm_callback".
>…
>
>Will the development attention grow for deviations of passed name strings
>from applied data structure identifiers?
My initial purpose is to replace kmem_cache_create() with KMEM_CACHE().
In my view,there is no problem in unifying passed name strings and
structure identifiers.
Maybe that's wrong,I will resubmit a patch that does not change
"dlm_cb" to "dlm_callback".
thanks,
Hongfu Li