]> 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)
commit2cfce93eef5145c18435767fb2a0a9e3cd6e2dbd
treedc2ff414c77f92ce984d3412746246b069a80828
parentff5d10d0d9f157432200d5c4bde51724646353b8
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