diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-04-27 07:49:10 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-04-27 08:37:48 -0400 |
commit | 45c06543afe2772c02f21efee0e2138b4e1c911e (patch) | |
tree | 16ccc5158564c0e1de7764a4284f59eeb5a1a822 /fs/btrfs/inode.c | |
parent | 193f284d4985db0370a8a1bbdfb20df548cf9ffb (diff) |
Btrfs: remove unused btrfs_bit_radix slab
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 552e08afc7fb..98bd5069d54a 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -70,7 +70,6 @@ static struct extent_io_ops btrfs_extent_io_ops; | |||
70 | static struct kmem_cache *btrfs_inode_cachep; | 70 | static struct kmem_cache *btrfs_inode_cachep; |
71 | struct kmem_cache *btrfs_trans_handle_cachep; | 71 | struct kmem_cache *btrfs_trans_handle_cachep; |
72 | struct kmem_cache *btrfs_transaction_cachep; | 72 | struct kmem_cache *btrfs_transaction_cachep; |
73 | struct kmem_cache *btrfs_bit_radix_cachep; | ||
74 | struct kmem_cache *btrfs_path_cachep; | 73 | struct kmem_cache *btrfs_path_cachep; |
75 | 74 | ||
76 | #define S_SHIFT 12 | 75 | #define S_SHIFT 12 |
@@ -4641,8 +4640,6 @@ void btrfs_destroy_cachep(void) | |||
4641 | kmem_cache_destroy(btrfs_trans_handle_cachep); | 4640 | kmem_cache_destroy(btrfs_trans_handle_cachep); |
4642 | if (btrfs_transaction_cachep) | 4641 | if (btrfs_transaction_cachep) |
4643 | kmem_cache_destroy(btrfs_transaction_cachep); | 4642 | kmem_cache_destroy(btrfs_transaction_cachep); |
4644 | if (btrfs_bit_radix_cachep) | ||
4645 | kmem_cache_destroy(btrfs_bit_radix_cachep); | ||
4646 | if (btrfs_path_cachep) | 4643 | if (btrfs_path_cachep) |
4647 | kmem_cache_destroy(btrfs_path_cachep); | 4644 | kmem_cache_destroy(btrfs_path_cachep); |
4648 | } | 4645 | } |
@@ -4673,11 +4670,6 @@ int btrfs_init_cachep(void) | |||
4673 | if (!btrfs_path_cachep) | 4670 | if (!btrfs_path_cachep) |
4674 | goto fail; | 4671 | goto fail; |
4675 | 4672 | ||
4676 | btrfs_bit_radix_cachep = kmem_cache_create("btrfs_radix", 256, 0, | ||
4677 | SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD | | ||
4678 | SLAB_DESTROY_BY_RCU, NULL); | ||
4679 | if (!btrfs_bit_radix_cachep) | ||
4680 | goto fail; | ||
4681 | return 0; | 4673 | return 0; |
4682 | fail: | 4674 | fail: |
4683 | btrfs_destroy_cachep(); | 4675 | btrfs_destroy_cachep(); |