Btrfs: use slabs for auto defrag allocation
authorMiao Xie <[email protected]>
Mon, 26 Nov 2012 09:24:43 +0000 (09:24 +0000)
committerChris Mason <[email protected]>
Mon, 17 Dec 2012 01:46:11 +0000 (20:46 -0500)
commit9247f3170b2c3d648707c93bbebcd763fac17c06
tree6e521e62171197502743b712271438be607ad293
parent905b0dda06a064db08b8a814e968786ff3c4cc19
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 <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/super.c