bcache: add return value check to bch_cached_dev_run()
authorColy Li <colyli@suse.de>
Fri, 28 Jun 2019 11:59:33 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:14 +0000 (07:39 -0600)
commit0b13efecf5f25ce5e31f2ab3930335015cb65a7d
tree03280dc95522f10714145d714703c1080b011230
parent89e0341af082dbc170019f908846f4a424efc86b
bcache: add return value check to bch_cached_dev_run()

This patch adds return value check to bch_cached_dev_run(), now if there
is error happens inside bch_cached_dev_run(), it can be catched.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/bcache.h
drivers/md/bcache/super.c
drivers/md/bcache/sysfs.c