bcache: display rate debug parameters to 0 when writeback is not running
authorColy Li <colyli@suse.de>
Thu, 9 Aug 2018 07:48:43 +0000 (15:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Aug 2018 14:21:03 +0000 (08:21 -0600)
commitb4cb6efc1af7da2fa1e9ff0eaf90e2be02cfdf5f
treedc2ff414c77f92ce984d3412746246b069a80828
parent78ac2107176baa0daf65b0fb8e561d2ed14c83ca
bcache: display rate debug parameters to 0 when writeback is not running

When writeback is not running, writeback rate should be 0, other value is
misleading. And the following dyanmic writeback rate debug parameters
should be 0 too,
rate, proportional, integral, change
otherwise they are misleading when writeback is not running.

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