• Tejun Heo's avatar
    blkcg: minor updates around blkcg_policy_data · 81437648
    Tejun Heo authored
    * Rename blkcg->pd[] to blkcg->cpd[] so that cpd is consistently used
      for blkcg_policy_data.
    
    * Make blkcg_policy->cpd_init_fn() take blkcg_policy_data instead of
      blkcg.  This makes it consistent with blkg_policy_data methods and
      to-be-added cpd alloc/free methods.
    
    * blkcg_policy_data->blkcg and cpd_to_blkcg() added so that
      cpd_init_fn() can determine the associated blkcg from
      blkcg_policy_data.
    
    v2: blkcg_policy_data->blkcg initializations were missing.  Added.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Cc: Arianna Avanzini <avanzini.arianna@gmail.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    81437648
cfq-iosched.c 121 KB