mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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:
parent
1a41802701
commit
a019e9e197
8 changed files with 2 additions and 31 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue