Re: [RFC PATCH 03/17] btrfs: priority alloc: introduce compute_block_group_priority/usage

2018-11-28 Thread Nikolay Borisov
On 28.11.18 г. 5:11 ч., Su Yue wrote: > Introduce compute_block_group_usage() and compute_block_group_usage(). > And call the latter in btrfs_make_block_group() and > btrfs_read_block_groups(). > > compute_priority_level use ilog2(free) to compute priority level. > > Signed-off-by: Su Yue >

[RFC PATCH 03/17] btrfs: priority alloc: introduce compute_block_group_priority/usage

2018-11-27 Thread Su Yue
Introduce compute_block_group_usage() and compute_block_group_usage(). And call the latter in btrfs_make_block_group() and btrfs_read_block_groups(). compute_priority_level use ilog2(free) to compute priority level. Signed-off-by: Su Yue --- fs/btrfs/extent-tree.c | 60