]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: refactor btrfs_find_device() take fs_devices as argument
authorAnand Jain <anand.jain@oracle.com>
Thu, 17 Jan 2019 15:32:31 +0000 (23:32 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:23 +0000 (14:13 +0100)
commita4c20fa8562bf9ec8531408b179a235db7ed706f
treeb86d6a50facd6a6a3c4fc8d35f4014c468ac5d6e
parent88498654a9effefb1957e76e874b9baee0faebd0
btrfs: refactor btrfs_find_device() take fs_devices as argument

btrfs_find_device() accepts fs_info as an argument and retrieves
fs_devices from fs_info.

Instead use fs_devices, so that this function can be used in non-mount
(during device scanning) context as well.

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/dev-replace.c
fs/btrfs/ioctl.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h