diff options
author | Josef Bacik <josef@redhat.com> | 2011-01-28 17:05:48 -0500 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-03-17 14:21:20 -0400 |
commit | dc89e9824464e91fa0b06267864ceabe3186fd8b (patch) | |
tree | 82952195464518dce48cb613c74d2326f228669b /fs/btrfs/ctree.h | |
parent | 57a45ced94fe48a701361d64230fc16eefa189dd (diff) | |
download | lwn-dc89e9824464e91fa0b06267864ceabe3186fd8b.tar.gz lwn-dc89e9824464e91fa0b06267864ceabe3186fd8b.zip |
Btrfs: use a slab for the free space entries
Since we alloc/free free space entries a whole lot, lets use a slab to keep
track of them. This makes some of my tests slightly faster. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 7f78cc78fdd0..2c98d209e6ac 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -40,6 +40,7 @@ extern struct kmem_cache *btrfs_trans_handle_cachep; extern struct kmem_cache *btrfs_transaction_cachep; extern struct kmem_cache *btrfs_bit_radix_cachep; extern struct kmem_cache *btrfs_path_cachep; +extern struct kmem_cache *btrfs_free_space_cachep; struct btrfs_ordered_sum; #define BTRFS_MAGIC "_BHRfS_M" |