f2fs: add prefix for f2fs slab cache name
In order to avoid polluting global slab cache namespace. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
5df7731f60
commit
985100035e
|
@ -3852,7 +3852,7 @@ void f2fs_destroy_post_read_wq(struct f2fs_sb_info *sbi)
|
||||||
|
|
||||||
int __init f2fs_init_bio_entry_cache(void)
|
int __init f2fs_init_bio_entry_cache(void)
|
||||||
{
|
{
|
||||||
bio_entry_slab = f2fs_kmem_cache_create("bio_entry_slab",
|
bio_entry_slab = f2fs_kmem_cache_create("f2fs_bio_entry_slab",
|
||||||
sizeof(struct bio_entry));
|
sizeof(struct bio_entry));
|
||||||
if (!bio_entry_slab)
|
if (!bio_entry_slab)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
|
@ -3190,22 +3190,22 @@ void f2fs_destroy_node_manager(struct f2fs_sb_info *sbi)
|
||||||
|
|
||||||
int __init f2fs_create_node_manager_caches(void)
|
int __init f2fs_create_node_manager_caches(void)
|
||||||
{
|
{
|
||||||
nat_entry_slab = f2fs_kmem_cache_create("nat_entry",
|
nat_entry_slab = f2fs_kmem_cache_create("f2fs_nat_entry",
|
||||||
sizeof(struct nat_entry));
|
sizeof(struct nat_entry));
|
||||||
if (!nat_entry_slab)
|
if (!nat_entry_slab)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
free_nid_slab = f2fs_kmem_cache_create("free_nid",
|
free_nid_slab = f2fs_kmem_cache_create("f2fs_free_nid",
|
||||||
sizeof(struct free_nid));
|
sizeof(struct free_nid));
|
||||||
if (!free_nid_slab)
|
if (!free_nid_slab)
|
||||||
goto destroy_nat_entry;
|
goto destroy_nat_entry;
|
||||||
|
|
||||||
nat_entry_set_slab = f2fs_kmem_cache_create("nat_entry_set",
|
nat_entry_set_slab = f2fs_kmem_cache_create("f2fs_nat_entry_set",
|
||||||
sizeof(struct nat_entry_set));
|
sizeof(struct nat_entry_set));
|
||||||
if (!nat_entry_set_slab)
|
if (!nat_entry_set_slab)
|
||||||
goto destroy_free_nid;
|
goto destroy_free_nid;
|
||||||
|
|
||||||
fsync_node_entry_slab = f2fs_kmem_cache_create("fsync_node_entry",
|
fsync_node_entry_slab = f2fs_kmem_cache_create("f2fs_fsync_node_entry",
|
||||||
sizeof(struct fsync_node_entry));
|
sizeof(struct fsync_node_entry));
|
||||||
if (!fsync_node_entry_slab)
|
if (!fsync_node_entry_slab)
|
||||||
goto destroy_nat_entry_set;
|
goto destroy_nat_entry_set;
|
||||||
|
|
|
@ -4832,22 +4832,22 @@ void f2fs_destroy_segment_manager(struct f2fs_sb_info *sbi)
|
||||||
|
|
||||||
int __init f2fs_create_segment_manager_caches(void)
|
int __init f2fs_create_segment_manager_caches(void)
|
||||||
{
|
{
|
||||||
discard_entry_slab = f2fs_kmem_cache_create("discard_entry",
|
discard_entry_slab = f2fs_kmem_cache_create("f2fs_discard_entry",
|
||||||
sizeof(struct discard_entry));
|
sizeof(struct discard_entry));
|
||||||
if (!discard_entry_slab)
|
if (!discard_entry_slab)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
discard_cmd_slab = f2fs_kmem_cache_create("discard_cmd",
|
discard_cmd_slab = f2fs_kmem_cache_create("f2fs_discard_cmd",
|
||||||
sizeof(struct discard_cmd));
|
sizeof(struct discard_cmd));
|
||||||
if (!discard_cmd_slab)
|
if (!discard_cmd_slab)
|
||||||
goto destroy_discard_entry;
|
goto destroy_discard_entry;
|
||||||
|
|
||||||
sit_entry_set_slab = f2fs_kmem_cache_create("sit_entry_set",
|
sit_entry_set_slab = f2fs_kmem_cache_create("f2fs_sit_entry_set",
|
||||||
sizeof(struct sit_entry_set));
|
sizeof(struct sit_entry_set));
|
||||||
if (!sit_entry_set_slab)
|
if (!sit_entry_set_slab)
|
||||||
goto destroy_discard_cmd;
|
goto destroy_discard_cmd;
|
||||||
|
|
||||||
inmem_entry_slab = f2fs_kmem_cache_create("inmem_page_entry",
|
inmem_entry_slab = f2fs_kmem_cache_create("f2fs_inmem_page_entry",
|
||||||
sizeof(struct inmem_pages));
|
sizeof(struct inmem_pages));
|
||||||
if (!inmem_entry_slab)
|
if (!inmem_entry_slab)
|
||||||
goto destroy_sit_entry_set;
|
goto destroy_sit_entry_set;
|
||||||
|
|
Loading…
Reference in New Issue