summaryrefslogtreecommitdiff
path: root/net/9p
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-05-23 01:23:26 +0300
committerJens Axboe <axboe@fb.com>2015-06-02 17:38:13 +0300
commitdaddfa3cb30ebfe322d50af146d830fd435ddb1f (patch)
tree4b67764441edb8e62798565e314759ce048218dd /net/9p
parentb1cbc6d40c85639d405fee37c7bb688c3bf468d6 (diff)
downloadlinux-daddfa3cb30ebfe322d50af146d830fd435ddb1f.tar.xz
writeback: add dirty_throttle_control->pos_ratio
wb_position_ratio() is used to calculate pos_ratio, which is used for two purposes. wb_update_dirty_ratelimit() uses it to adjust wb->[balanced_]dirty_ratelimit gradually and balance_dirty_pages() to immediately adjust dirty_ratelimit right before applying it to determine pause duration. While wb_update_dirty_ratelimit() is separately rate limited from balance_dirty_pages(), on the run where the ratelimit is updated, we end up calculating pos_ratio twice with the same parameters. This patch adds dirty_throttle_control->pos_ratio. balance_dirty_pages() calculates it once per run and wb_update_dirty_ratelimit() uses the value stored in dirty_throttle_control. This removes the duplicate calculation and also will help implementing memcg wb_domain. 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 'net/9p')
0 files changed, 0 insertions, 0 deletions