diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-26 09:24:43 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-16 20:46:11 -0500 |
commit | 9247f3170b2c3d648707c93bbebcd763fac17c06 (patch) | |
tree | 6e521e62171197502743b712271438be607ad293 /fs/btrfs/ctree.h | |
parent | 905b0dda06a064db08b8a814e968786ff3c4cc19 (diff) | |
download | blackbird-op-linux-9247f3170b2c3d648707c93bbebcd763fac17c06.tar.gz blackbird-op-linux-9247f3170b2c3d648707c93bbebcd763fac17c06.zip |
Btrfs: use slabs for auto defrag allocation
The auto defrag allocation is in the fast path of the IO, so use slabs
to improve the speed of the allocation.
And besides that, it can do check for leaked objects when the module is removed.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 91ff078e85df..389c05715eaa 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3505,6 +3505,8 @@ void btrfs_get_block_group_info(struct list_head *groups_list, struct btrfs_ioctl_space_info *space); /* file.c */ +int btrfs_auto_defrag_init(void); +void btrfs_auto_defrag_exit(void); int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, struct inode *inode); int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info); |