OSDN Git Service

btrfs: get mapping tree directly from fsinfo in find_first_block_group
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 2 Jun 2020 10:05:56 +0000 (19:05 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:20 +0000 (12:55 +0200)
commit89d7da9bc592aa6a341d00f2d949615a89bb1eb7
tree962caa14d81c070785a041bfb8eeb48786ad0fe1
parent96f9b0f2fa01c96e90abd4e981208a341a5da66e
btrfs: get mapping tree directly from fsinfo in find_first_block_group

We already have an fs_info in our function parameters, there's no need
to do the maths again and get fs_info from the extent_root just to get
the mapping_tree.

Instead directly grab the mapping_tree from fs_info.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c