Re: [PATCH 5/7] btrfs: warn for num_devices below 0

2018-07-23 Thread Anand Jain
On 07/23/2018 10:01 PM, David Sterba wrote: On Mon, Jul 16, 2018 at 10:58:10PM +0800, Anand Jain wrote: In preparation to de-duplicate a section of code where we deduce the num_devices, use warn instead of bug. Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 2 +- 1 file changed, 1

Re: [PATCH 5/7] btrfs: warn for num_devices below 0

2018-07-23 Thread David Sterba
On Mon, Jul 16, 2018 at 10:58:10PM +0800, Anand Jain wrote: > In preparation to de-duplicate a section of code where we deduce the > num_devices, use warn instead of bug. > > Signed-off-by: Anand Jain > --- > fs/btrfs/volumes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH 5/7] btrfs: warn for num_devices below 0

2018-07-16 Thread Anand Jain
In preparation to de-duplicate a section of code where we deduce the num_devices, use warn instead of bug. Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index