diff options
author | Anand Jain <anand.jain@oracle.com> | 2021-08-24 13:05:19 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-10-26 19:08:00 +0200 |
commit | d24fa5c1da08026be9959baca309fa0adf8708bf (patch) | |
tree | 7199254c71cd50c421ab61be700181c07a53c0f3 /fs/btrfs/inode.c | |
parent | 7ae9bd18032e8164da776647a7dd2a4e3b1ecea8 (diff) | |
download | linux-d24fa5c1da08026be9959baca309fa0adf8708bf.tar.bz2 |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 10efab2e3bd9..e6e87dd80a02 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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)) |