btrfs: remove extent_map::bdev

We can now remove the bdev from extent_map. Previous patches made sure
that bio_set_dev is correctly in all places and that we don't need to
grab it from latest_bdev or pass it around inside the extent map.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2019-08-30 15:40:53 +02:00
parent 1a41802701
commit a019e9e197
8 changed files with 2 additions and 31 deletions

View file

@ -218,9 +218,6 @@ static int mergable_maps(struct extent_map *prev, struct extent_map *next)
ASSERT(test_bit(EXTENT_FLAG_FS_MAPPING, &prev->flags) &&
test_bit(EXTENT_FLAG_FS_MAPPING, &next->flags));
if (prev->bdev || next->bdev)
ASSERT(prev->bdev == next->bdev);
if (extent_map_end(prev) == next->start &&
prev->flags == next->flags &&
prev->map_lookup == next->map_lookup &&