aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/delayed-inode.c2
-rw-r--r--fs/btrfs/extent_io.c4
-rw-r--r--fs/btrfs/extent_map.c2
-rw-r--r--fs/btrfs/inode.c10
4 files changed, 9 insertions, 9 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index eb768c4c1358..b26d2f9d88d7 100644
--- a/fs/btrfs/delayed-inode.c
+++ b/fs/btrfs/delayed-inode.c
@@ -29,7 +29,7 @@ static struct kmem_cache *delayed_node_cache;
29 29
30int __init btrfs_delayed_inode_init(void) 30int __init btrfs_delayed_inode_init(void)
31{ 31{
32 delayed_node_cache = kmem_cache_create("delayed_node", 32 delayed_node_cache = kmem_cache_create("btrfs_delayed_node",
33 sizeof(struct btrfs_delayed_node), 33 sizeof(struct btrfs_delayed_node),
34 0, 34 0,
35 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, 35 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD,
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 4a41b17295dc..3ad84f500687 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -64,13 +64,13 @@ tree_fs_info(struct extent_io_tree *tree)
64 64
65int __init extent_io_init(void) 65int __init extent_io_init(void)
66{ 66{
67 extent_state_cache = kmem_cache_create("extent_state", 67 extent_state_cache = kmem_cache_create("btrfs_extent_state",
68 sizeof(struct extent_state), 0, 68 sizeof(struct extent_state), 0,
69 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 69 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
70 if (!extent_state_cache) 70 if (!extent_state_cache)
71 return -ENOMEM; 71 return -ENOMEM;
72 72
73 extent_buffer_cache = kmem_cache_create("extent_buffers", 73 extent_buffer_cache = kmem_cache_create("btrfs_extent_buffer",
74 sizeof(struct extent_buffer), 0, 74 sizeof(struct extent_buffer), 0,
75 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 75 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
76 if (!extent_buffer_cache) 76 if (!extent_buffer_cache)
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index ac606f076eb7..8d1364d385d6 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -11,7 +11,7 @@ static struct kmem_cache *extent_map_cache;
11 11
12int __init extent_map_init(void) 12int __init extent_map_init(void)
13{ 13{
14 extent_map_cache = kmem_cache_create("extent_map", 14 extent_map_cache = kmem_cache_create("btrfs_extent_map",
15 sizeof(struct extent_map), 0, 15 sizeof(struct extent_map), 0,
16 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 16 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
17 if (!extent_map_cache) 17 if (!extent_map_cache)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 9b21cf97cdd5..aae55625aa59 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -7155,31 +7155,31 @@ void btrfs_destroy_cachep(void)
7155 7155
7156int btrfs_init_cachep(void) 7156int btrfs_init_cachep(void)
7157{ 7157{
7158 btrfs_inode_cachep = kmem_cache_create("btrfs_inode_cache", 7158 btrfs_inode_cachep = kmem_cache_create("btrfs_inode",
7159 sizeof(struct btrfs_inode), 0, 7159 sizeof(struct btrfs_inode), 0,
7160 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, init_once); 7160 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, init_once);
7161 if (!btrfs_inode_cachep) 7161 if (!btrfs_inode_cachep)
7162 goto fail; 7162 goto fail;
7163 7163
7164 btrfs_trans_handle_cachep = kmem_cache_create("btrfs_trans_handle_cache", 7164 btrfs_trans_handle_cachep = kmem_cache_create("btrfs_trans_handle",
7165 sizeof(struct btrfs_trans_handle), 0, 7165 sizeof(struct btrfs_trans_handle), 0,
7166 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 7166 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
7167 if (!btrfs_trans_handle_cachep) 7167 if (!btrfs_trans_handle_cachep)
7168 goto fail; 7168 goto fail;
7169 7169
7170 btrfs_transaction_cachep = kmem_cache_create("btrfs_transaction_cache", 7170 btrfs_transaction_cachep = kmem_cache_create("btrfs_transaction",
7171 sizeof(struct btrfs_transaction), 0, 7171 sizeof(struct btrfs_transaction), 0,
7172 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 7172 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
7173 if (!btrfs_transaction_cachep) 7173 if (!btrfs_transaction_cachep)
7174 goto fail; 7174 goto fail;
7175 7175
7176 btrfs_path_cachep = kmem_cache_create("btrfs_path_cache", 7176 btrfs_path_cachep = kmem_cache_create("btrfs_path",
7177 sizeof(struct btrfs_path), 0, 7177 sizeof(struct btrfs_path), 0,
7178 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 7178 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
7179 if (!btrfs_path_cachep) 7179 if (!btrfs_path_cachep)
7180 goto fail; 7180 goto fail;
7181 7181
7182 btrfs_free_space_cachep = kmem_cache_create("btrfs_free_space_cache", 7182 btrfs_free_space_cachep = kmem_cache_create("btrfs_free_space",
7183 sizeof(struct btrfs_free_space), 0, 7183 sizeof(struct btrfs_free_space), 0,
7184 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL); 7184 SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD, NULL);
7185 if (!btrfs_free_space_cachep) 7185 if (!btrfs_free_space_cachep)