Johannes Thumshirn e3ba67a108 btrfs: factor out reading of bg from find_frist_block_group
When find_first_block_group() finds a block group item in the extent-tree,
it does a lookup of the object in the extent mapping tree and does further
checks on the item.

Factor out this step from find_first_block_group() so we can further
simplify the code.

While we're at it, we can also just return early in
find_first_block_group(), if the tree slot isn't found.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-07-27 12:55:20 +02:00
..
2020-03-23 17:02:00 +01:00
2020-07-07 14:10:33 -07:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:37 +02:00
2020-07-24 14:11:43 -07:00
2019-11-18 23:43:44 +01:00
2020-07-24 14:11:43 -07:00
2020-03-23 17:01:43 +01:00
2020-01-20 16:40:55 +01:00
2020-05-25 11:25:37 +02:00
2019-11-18 17:51:51 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:36 +02:00
2020-06-02 19:59:25 -07:00
2020-05-25 11:25:36 +02:00