diff options
author | Tejun Heo <tj@kernel.org> | 2015-05-23 00:23:25 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-06-02 16:38:13 +0200 |
commit | b1cbc6d40c85639d405fee37c7bb688c3bf468d6 (patch) | |
tree | 3fade9185da49c4ba9d54fd77f5501d514b8b447 /mm/swapfile.c | |
parent | writeback: add dirty_throttle_control->wb_bg_thresh (diff) | |
download | linux-b1cbc6d40c85639d405fee37c7bb688c3bf468d6.tar.xz linux-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 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions