bcache: fix wrong return value in bch_debug_init()
authorTang Junhui <tang.junhui@zte.com.cn>
Mon, 8 Jan 2018 20:21:22 +0000 (12:21 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Jan 2018 20:29:00 +0000 (13:29 -0700)
commit539d39eb27083405b82b9e604e88af01a9a46c63
tree5addc3281f3247dd87e93731f00584a8529e63b7
parent4eca1cb28d8b0574ca4f1f48e9331c5f852d43b9
bcache: fix wrong return value in bch_debug_init()

in bch_debug_init(), ret is always 0, and the return value is useless,
change it to return 0 if be success after calling debugfs_create_dir(),
else return a non-zero value.

Signed-off-by: Tang Junhui <tang.junhui@zte.com.cn>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/bcache.h
drivers/md/bcache/debug.c
drivers/md/bcache/writeback.c
drivers/md/bcache/writeback.h