mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
blkcg: misc preparations for unified hierarchy interface
* Export blkg_dev_name() * Drop unnecessary @cft from __cfq_set_weight(). Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
69948b070e
commit
dd165eb3bb
3 changed files with 7 additions and 5 deletions
|
|
@ -462,13 +462,14 @@ static int blkcg_reset_stats(struct cgroup_subsys_state *css,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const char *blkg_dev_name(struct blkcg_gq *blkg)
|
||||
const char *blkg_dev_name(struct blkcg_gq *blkg)
|
||||
{
|
||||
/* some drivers (floppy) instantiate a queue w/o disk registered */
|
||||
if (blkg->q->backing_dev_info.dev)
|
||||
return dev_name(blkg->q->backing_dev_info.dev);
|
||||
return NULL;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(blkg_dev_name);
|
||||
|
||||
/**
|
||||
* blkcg_print_blkgs - helper for printing per-blkg data
|
||||
|
|
|
|||
Loading…
Reference in a new issue