summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-09-03 11:46:13 +0200
committerDavid Sterba <dsterba@suse.com>2018-10-15 17:23:29 +0200
commit6c05040702e7793e8ee63bb8384ac2f9235c926e (patch)
tree800359b874392851d3b6549b7a60739097d3ac2b /fs/btrfs/dev-replace.c
parentbtrfs: Make btrfs_find_device_by_path return struct btrfs_device (diff)
downloadlinux-6c05040702e7793e8ee63bb8384ac2f9235c926e.tar.xz
linux-6c05040702e7793e8ee63bb8384ac2f9235c926e.zip
btrfs: Make btrfs_find_device_missing_or_by_path return directly a device
This function returns a numeric error value and additionally the device found in one of its input parameters. Simplify this by making the function directly return a pointer to btrfs_device. Additionally adjust the caller to handle the case when we want to remove the 'missing' device and ENOENT is returned to return the expected positive error value, parsed by progs. Finally, unexport the function since it's not called outside of volume.c. 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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions