Project

General

Profile

Kmalloc-kmem-cache-tests » 0003-batman-adv-don-t-use-SLAB_HWCACHE_ALIGN.patch

Linus Lüssing, 06/20/2016 04:02 AM

View differences:

net/batman-adv/translation-table.c
size_t tg_size = sizeof(struct batadv_tt_global_entry);
size_t tt_orig_size = sizeof(struct batadv_tt_orig_list_entry);
batadv_tl_cache = kmem_cache_create("batadv_tl_cache", tl_size, 0,
SLAB_HWCACHE_ALIGN, NULL);
batadv_tl_cache = kmem_cache_create("batadv_tl_cache", tl_size, 0, 0,
NULL);
if (!batadv_tl_cache)
return -ENOMEM;
batadv_tg_cache = kmem_cache_create("batadv_tg_cache", tg_size, 0,
SLAB_HWCACHE_ALIGN, NULL);
batadv_tg_cache = kmem_cache_create("batadv_tg_cache", tg_size, 0, 0,
NULL);
if (!batadv_tg_cache)
goto err_tg_alloc;
batadv_tt_orig_cache = kmem_cache_create("batadv_tt_orig_cache",
tt_orig_size, 0,
SLAB_HWCACHE_ALIGN, NULL);
tt_orig_size, 0, 0, NULL);
if (!batadv_tt_orig_cache)
goto err_tt_orig_alloc;
(8-8/11)