Skip to content
  • Tejun Heo's avatar
    writeback: add dirty_throttle_control->wb_completions · e9770b34
    Tejun Heo authored
    
    
    wb->completions measures the wb's proportional write bandwidth in
    global_wb_domain and thus naturally tied to the wb_domain.  This patch
    adds dirty_throttle_control->wb_completions which is initialized to
    wb->completions by GDTC_INIT() and updates __wb_dirty_limits() to use
    it instead of dereferencing wb->completions directly.
    
    This will allow dirty_throttle_control to represent different
    wb_domains and the matching wb completions.
    
    This patch doesn't introduce any behavioral changes.
    
    Signed-off-by: default avatarTejun 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: default avatarJens Axboe <axboe@fb.com>
    e9770b34