]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58f0acf6c7588b35769e2a7ceb97aaaf54be1df4
treedc2ff414c77f92ce984d3412746246b069a80828
parentbc31163b94a23249cc9cf75ab4fe9fc24014ca76
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