Commit 45c06543 authored by Chris Mason's avatar Chris Mason

Btrfs: remove unused btrfs_bit_radix slab

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 193f284d
...@@ -70,7 +70,6 @@ static struct extent_io_ops btrfs_extent_io_ops; ...@@ -70,7 +70,6 @@ static struct extent_io_ops btrfs_extent_io_ops;
static struct kmem_cache *btrfs_inode_cachep; static struct kmem_cache *btrfs_inode_cachep;
struct kmem_cache *btrfs_trans_handle_cachep; struct kmem_cache *btrfs_trans_handle_cachep;
struct kmem_cache *btrfs_transaction_cachep; struct kmem_cache *btrfs_transaction_cachep;
struct kmem_cache *btrfs_bit_radix_cachep;
struct kmem_cache *btrfs_path_cachep; struct kmem_cache *btrfs_path_cachep;
#define S_SHIFT 12 #define S_SHIFT 12
...@@ -4641,8 +4640,6 @@ void btrfs_destroy_cachep(void) ...@@ -4641,8 +4640,6 @@ void btrfs_destroy_cachep(void)
kmem_cache_destroy(btrfs_trans_handle_cachep); kmem_cache_destroy(btrfs_trans_handle_cachep);
if (btrfs_transaction_cachep) if (btrfs_transaction_cachep)
kmem_cache_destroy(btrfs_transaction_cachep); kmem_cache_destroy(btrfs_transaction_cachep);
if (btrfs_bit_radix_cachep)
kmem_cache_destroy(btrfs_bit_radix_cachep);
if (btrfs_path_cachep) if (btrfs_path_cachep)
kmem_cache_destroy(btrfs_path_cachep); kmem_cache_destroy(btrfs_path_cachep);
} }
...@@ -4673,11 +4670,6 @@ int btrfs_init_cachep(void) ...@@ -4673,11 +4670,6 @@ int btrfs_init_cachep(void)
if (!btrfs_path_cachep) if (!btrfs_path_cachep)
goto fail; goto fail;
btrfs_bit_radix_cachep = kmem_cache_create("btrfs_radix", 256, 0,
SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD |
SLAB_DESTROY_BY_RCU, NULL);
if (!btrfs_bit_radix_cachep)
goto fail;
return 0; return 0;
fail: fail:
btrfs_destroy_cachep(); btrfs_destroy_cachep();
......
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