Merge tag 'rust-6.9' of https://github.com/Rust-for-Linux/linux
[sfrench/cifs-2.6.git] / fs / mbcache.c
index 82aa7a35db26b3f45950f2ec0f0fb6b04036f811..e60a840999aa98315f7a6dd038fe7ae2eed749d5 100644 (file)
@@ -426,9 +426,7 @@ EXPORT_SYMBOL(mb_cache_destroy);
 
 static int __init mbcache_init(void)
 {
-       mb_entry_cache = kmem_cache_create("mbcache",
-                               sizeof(struct mb_cache_entry), 0,
-                               SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL);
+       mb_entry_cache = KMEM_CACHE(mb_cache_entry, SLAB_RECLAIM_ACCOUNT);
        if (!mb_entry_cache)
                return -ENOMEM;
        return 0;