Skip to content

Commit 7567c2a

Browse files
klightspeedaxboe
authored andcommitted
bcache: Populate writeback_rate_minimum attribute
Forgot to include the maintainers with my first email. Somewhere between Michael Lyle's original "bcache: PI controller for writeback rate V2" patch dated 07 Sep 2017 and 1d316e6 bcache: implement PI controller for writeback rate, the mapping of the writeback_rate_minimum attribute was dropped. Re-add the missing sysfs writeback_rate_minimum attribute mapping to "allow the user to specify a minimum rate at which dirty blocks are retired." Fixes: 1d316e6 ("bcache: implement PI controller for writeback rate") Signed-off-by: Ben Peddell <klightspeed@killerwolves.net> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2e17a26 commit 7567c2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/md/bcache/sysfs.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ STORE(__cached_dev)
285285
1, WRITEBACK_RATE_UPDATE_SECS_MAX);
286286
d_strtoul(writeback_rate_i_term_inverse);
287287
d_strtoul_nonzero(writeback_rate_p_term_inverse);
288+
d_strtoul_nonzero(writeback_rate_minimum);
288289

289290
sysfs_strtoul_clamp(io_error_limit, dc->error_limit, 0, INT_MAX);
290291

@@ -412,6 +413,7 @@ static struct attribute *bch_cached_dev_files[] = {
412413
&sysfs_writeback_rate_update_seconds,
413414
&sysfs_writeback_rate_i_term_inverse,
414415
&sysfs_writeback_rate_p_term_inverse,
416+
&sysfs_writeback_rate_minimum,
415417
&sysfs_writeback_rate_debug,
416418
&sysfs_errors,
417419
&sysfs_io_error_limit,

0 commit comments

Comments
 (0)