Commit 9c0e00e5 authored by Yongqiang Yang's avatar Yongqiang Yang Committed by Theodore Ts'o

jbd2: use KMEM_CACHE instead of kmem_cache_create()

Use the KMEM_CACHE helper macro instead of kmem_cache_create().
Signed-off-by: default avatarYongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 4185a2ac
...@@ -208,17 +208,13 @@ int __init jbd2_journal_init_revoke_caches(void) ...@@ -208,17 +208,13 @@ int __init jbd2_journal_init_revoke_caches(void)
J_ASSERT(!jbd2_revoke_record_cache); J_ASSERT(!jbd2_revoke_record_cache);
J_ASSERT(!jbd2_revoke_table_cache); J_ASSERT(!jbd2_revoke_table_cache);
jbd2_revoke_record_cache = kmem_cache_create("jbd2_revoke_record", jbd2_revoke_record_cache = KMEM_CACHE(jbd2_revoke_record_s,
sizeof(struct jbd2_revoke_record_s), SLAB_HWCACHE_ALIGN|SLAB_TEMPORARY);
0,
SLAB_HWCACHE_ALIGN|SLAB_TEMPORARY,
NULL);
if (!jbd2_revoke_record_cache) if (!jbd2_revoke_record_cache)
goto record_cache_failure; goto record_cache_failure;
jbd2_revoke_table_cache = kmem_cache_create("jbd2_revoke_table", jbd2_revoke_table_cache = KMEM_CACHE(jbd2_revoke_table_s,
sizeof(struct jbd2_revoke_table_s), SLAB_TEMPORARY);
0, SLAB_TEMPORARY, NULL);
if (!jbd2_revoke_table_cache) if (!jbd2_revoke_table_cache)
goto table_cache_failure; goto table_cache_failure;
return 0; return 0;
......
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