]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: convert latest_bdev type to btrfs_device and rename
authorAnand Jain <anand.jain@oracle.com>
Tue, 24 Aug 2021 05:05:19 +0000 (13:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:00 +0000 (19:08 +0200)
commit24b5c8f48df9592f4e0fcb20d689dba77330a528
tree7199254c71cd50c421ab61be700181c07a53c0f3
parent155017d5d965e9588abbb2dbba5ea3a2958e08b3
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>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h