btrfs: convert latest_bdev type to btrfs_device and rename
In preparation to fix a bug in btrfs_show_devname(). Convert fs_devices::latest_bdev type from struct block_device to struct btrfs_device and, rename the member to fs_devices::latest_dev. So that btrfs_show_devname() can use fs_devices::latest_dev::name. Tested-by: Su Yue <l@damenly.su> Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -7965,7 +7965,7 @@ static int btrfs_dio_iomap_begin(struct inode *inode, loff_t start,
|
||||
iomap->type = IOMAP_MAPPED;
|
||||
}
|
||||
iomap->offset = start;
|
||||
iomap->bdev = fs_info->fs_devices->latest_bdev;
|
||||
iomap->bdev = fs_info->fs_devices->latest_dev->bdev;
|
||||
iomap->length = len;
|
||||
|
||||
if (write && btrfs_use_zone_append(BTRFS_I(inode), em->block_start))
|
||||
|
||||
Reference in New Issue
Block a user