Re: [PATCH 0/3] cleanup couple of device-related functions' retval

2018-09-10 Thread David Sterba
On Mon, Sep 03, 2018 at 12:46:11PM +0300, Nikolay Borisov wrote: > Currently btrfs_find_device_by_path, btrfs_find_device_missing_or_by_path and > btrfs_find_device_by_devspec are called in a chain and they all return an > integer value to signal error and at the same time use one of their

[PATCH 0/3] cleanup couple of device-related functions' retval

2018-09-03 Thread Nikolay Borisov
Currently btrfs_find_device_by_path, btrfs_find_device_missing_or_by_path and btrfs_find_device_by_devspec are called in a chain and they all return an integer value to signal error and at the same time use one of their parameters as an output. This patch set refactors those functions starting