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:
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user