Re: [PATCH] bug fix for making cache device failed

2018-09-24 Thread Coly Li
On 9/21/18 2:14 PM, Dongbo Cao wrote: 1)when the nbuckets of cache device is smaller than 1024, make cache device will trigger BUG_ON in kernel, add a condition to avoid this. 2)split original if condition code into separate ones to make it clearly to debug. Signed-off-by: Dongbo Cao Hi D

[PATCH] bug fix for making cache device failed

2018-09-20 Thread Dongbo Cao
1)when the nbuckets of cache device is smaller than 1024, make cache device will trigger BUG_ON in kernel, add a condition to avoid this. 2)split original if condition code into separate ones to make it clearly to debug. Signed-off-by: Dongbo Cao --- drivers/md/bcache/super.c | 87