]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: cleanup btrfs_find_device_by_devspec()
authorAnand Jain <anand.jain@oracle.com>
Thu, 17 Jan 2019 15:32:29 +0000 (23:32 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:23 +0000 (14:13 +0100)
commit88498654a9effefb1957e76e874b9baee0faebd0
treefb2fc0e9e377aea0e966e637e28da59c3af79506
parente2a1d1bab5b07b78b926aada80f97dbfdccd391e
btrfs: cleanup btrfs_find_device_by_devspec()

btrfs_find_device_by_devspec() finds the device by @devid or by
@device_path. This patch makes code flow easy to read by open coding the
else part and renames devpath to device_path.

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/volumes.c