diff options
author | Tejun Heo <tj@kernel.org> | 2015-05-22 18:23:25 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-06-02 08:38:13 -0600 |
commit | b1cbc6d40c85639d405fee37c7bb688c3bf468d6 (patch) | |
tree | 3fade9185da49c4ba9d54fd77f5501d514b8b447 /arch/cris/kernel | |
parent | 970fb01ad3a773b5612a9bba6b366abcefc18eaf (diff) | |
download | lwn-b1cbc6d40c85639d405fee37c7bb688c3bf468d6.tar.gz lwn-b1cbc6d40c85639d405fee37c7bb688c3bf468d6.zip |
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 <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Greg Thelen <gthelen@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'arch/cris/kernel')
0 files changed, 0 insertions, 0 deletions