Re: [PATCH 4/7] Btrfs: use a slab for ordered extents allocation

2012-09-05 Thread David Sterba
On Wed, Aug 29, 2012 at 12:12:50PM +0800, Miao Xie wrote: The ordered extent allocation is in the fast path of the IO, so use a slab to improve the speed of the allocation. Good. Size of the struct is 280, so this will fall into the size-512 bucket, giving 8 objects per page, while own slab

Re: [PATCH 4/7] Btrfs: use a slab for ordered extents allocation

2012-09-05 Thread Miao Xie
On Wed, 5 Sep 2012 18:16:19 +0200, David Sterba wrote: On Wed, Aug 29, 2012 at 12:12:50PM +0800, Miao Xie wrote: The ordered extent allocation is in the fast path of the IO, so use a slab to improve the speed of the allocation. Good. Size of the struct is 280, so this will fall into the

[PATCH 4/7] Btrfs: use a slab for ordered extents allocation

2012-08-28 Thread Miao Xie
The ordered extent allocation is in the fast path of the IO, so use a slab to improve the speed of the allocation. Signed-off-by: Miao Xie mi...@cn.fujitsu.com --- fs/btrfs/ordered-data.c | 23 +-- fs/btrfs/ordered-data.h |2 ++ fs/btrfs/super.c|9 -