mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
7ae9bd1803
commit
d24fa5c1da
6 changed files with 16 additions and 12 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue