Re: [PATCH v3 1/4] btrfs: add_missing_dev() should return the actual error

2017-10-13 Thread David Sterba
On Wed, Oct 11, 2017 at 12:46:18PM +0800, Anand Jain wrote: > add_missing_dev() can return device pointer so that IS_ERR/ > PTR_ERR can be used to check for the actual error occurred > in the function. > > Signed-off-by: Anand Jain > Reviewed-by: Liu Bo

[PATCH v3 1/4] btrfs: add_missing_dev() should return the actual error

2017-10-10 Thread Anand Jain
add_missing_dev() can return device pointer so that IS_ERR/ PTR_ERR can be used to check for the actual error occurred in the function. Signed-off-by: Anand Jain Reviewed-by: Liu Bo --- v2: add btrfs_err in read_one_dev too v3: fix wrong commit id