]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Make btrfs_find_device_by_path return struct btrfs_device
authorNikolay Borisov <nborisov@suse.com>
Mon, 3 Sep 2018 09:46:12 +0000 (12:46 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:29 +0000 (17:23 +0200)
commitf6b9c62a242e94330ffad0f2e6d7198176bb520f
treeed43f01df44288d65700346093f3658f09bde967
parent3f48cb4d9b6505874307159903be58d1eff978f7
btrfs: Make btrfs_find_device_by_path return struct btrfs_device

Currently this function returns an error code as well as uses one of
its arguments as a return value for struct btrfs_device. Change the
function so that it returns btrfs_device directly and use the usual
"encode error in pointer" mechanics if something goes wrong. No
functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c