]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: panic fix for making cache device
authorDongbo Cao <cdbdyx@163.com>
Mon, 8 Oct 2018 12:41:21 +0000 (20:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Oct 2018 14:19:59 +0000 (08:19 -0600)
commita4f41c4d1bad3c1be7f105b675f863bde70af35a
tree50d9cfe4ec782133acf6154baa24b75a445688ff
parentd005e136dc330763eb058c511deae7953c53f5cb
bcache: panic fix for making cache device

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.

Reported-by: nitroxis <n@nxs.re>
Signed-off-by: Dongbo Cao <cdbdyx@163.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c