commit | 3a646fd77684dd5fbe20748bb04e12077bbecddc | [log] [tgz] |
---|---|---|
author | Dongbo Cao <cdbdyx@163.com> | Mon Oct 08 20:41:21 2018 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 08 08:19:59 2018 -0600 |
tree | 50d9cfe4ec782133acf6154baa24b75a445688ff | |
parent | f6027bca9e382efc4d4f28a2d9678e0a07428363 [diff] |
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>