Commit 6053b6b5 authored by Alessandro Rubini's avatar Alessandro Rubini

zio-buf-kmalloc: use an explicit name for the memory cache

The vmalloc buffer uses the same names for structure (to ease "diff"
users in understanding it) so the slab name can't be the structure name.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent a472a64b
......@@ -257,7 +257,9 @@ static int __init zbk_init(void)
{
int ret;
zbk_slab = KMEM_CACHE(zbk_item, 0);
/* Can't use "zbk_item" as name and KMEM_CACHE_NAMED is not there */
zbk_slab = kmem_cache_create("zio-kmalloc", sizeof(struct zbk_item),
__alignof__(struct zbk_item), 0, NULL);
if (!zbk_slab)
return -ENOMEM;
ret = zio_register_buf(&zbk_buffer, "kmalloc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment