]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68cdd9738dc4c56bc7e06b593556787bde46d051
tree962caa14d81c070785a041bfb8eeb48786ad0fe1
parent566d3cdc1e79715976d3e6e8c2fbda12c464149b
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