Re: [PATCH v3 2/2] btrfs: fix BUG_ON in btrfs_init_new_device()

2017-09-26 Thread Qu Wenruo
On 2017年09月26日 16:41, Anand Jain wrote: Instead of BUG_ON return error to the caller. And handle the fail condition by calling the abort transaction and going through the error path. Signed-off-by: Anand Jain Reviewed-by: Qu Wenruo Thanks, Qu --- fs/btrfs/volumes.c | 14 +-

[PATCH v3 2/2] btrfs: fix BUG_ON in btrfs_init_new_device()

2017-09-26 Thread Anand Jain
Instead of BUG_ON return error to the caller. And handle the fail condition by calling the abort transaction and going through the error path. Signed-off-by: Anand Jain --- v2: do not consolidate btrfs_abort_transaction() v3: meld 2/3 and 3/3 from v2 fs/btrfs/volumes.c | 14 +- 1 fi

[PATCH v3 2/2] btrfs: fix BUG_ON in btrfs_init_new_device()

2017-09-26 Thread Anand Jain
Instead of BUG_ON return error to the caller. And handle the fail condition by calling the abort transaction and going through the error path. Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/volumes.c b/