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

2017-10-13 Thread David Sterba
On Mon, Oct 09, 2017 at 11:07:43AM +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 > --- 1-4 added, with some tweaks.

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

2017-10-10 Thread Liu Bo
On Mon, Oct 09, 2017 at 11:07:43AM +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 > --- > v2: This patch is a split from >

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

2017-10-08 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 --- v2: This patch is a split from [PATCH 1/2] btrfs: fix read_one_chunk() return error code