bcache: fix error return value in memory shrink
authorTang Junhui <tang.junhui@zte.com.cn>
Mon, 19 Mar 2018 00:36:21 +0000 (17:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Mar 2018 02:15:20 +0000 (20:15 -0600)
commitf3641c3abd1da978ee969b0203b71b86ec1bfa93
tree8670c8088ec6c0f3b1f2fd6b5fb6f0afa3f16872
parent688892b3bc05e25da94866e32210e5f503f16f69
bcache: fix error return value in memory shrink

In bch_mca_scan(), the return value should not be the number of freed btree
nodes, but the number of pages of freed btree nodes.

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/btree.c