Re: [PATCH 2/2] panic fix for making cache device

2018-09-25 Thread Coly Li
On 9/25/18 2:09 PM, Dongbo Cao wrote: when the nbuckets of cache device is smaller than 1024, making cache device will trigger BUG_ON in kernel, add a condition to avoid this. Signed-off-by: Dongbo Cao This patch added to my for-next, with minor change to fix checkpatch.pl warning. Than

[PATCH 2/2] panic fix for making cache device

2018-09-24 Thread Dongbo Cao
when the nbuckets of cache device is smaller than 1024, making cache device will trigger BUG_ON in kernel, add a condition to avoid this. Signed-off-by: Dongbo Cao --- drivers/md/bcache/super.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/super