diff options
| author | Tejun Heo <[email protected]> | 2015-05-22 18:23:25 -0400 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2015-06-02 08:38:13 -0600 |
| commit | b1cbc6d40c85639d405fee37c7bb688c3bf468d6 (patch) | |
| tree | 3fade9185da49c4ba9d54fd77f5501d514b8b447 /tools/perf/scripts/python | |
| parent | 970fb01ad3a773b5612a9bba6b366abcefc18eaf (diff) | |
writeback: make __wb_calc_thresh() take dirty_throttle_control
wb_calc_thresh() calculates wb_thresh by scaling thresh according to
the wb's portion in the system-wide write bandwidth. cgroup writeback
support would need to calculate wb_thresh against memcg domain too.
This patch renames wb_calc_thresh() to __wb_calc_thresh() and makes it
take dirty_throttle_control so that the function can later be updated
to calculate against different domains according to
dirty_throttle_control.
wb_calc_thresh() is now a thin wrapper around __wb_calc_thresh().
v2: The original version was incorrectly scaling dtc->dirty instead of
dtc->thresh. This was due to the extremely confusing function and
variable names. Added a rename patch and fixed this one.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Greg Thelen <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions