summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2020-05-04 14:47:55 +0200
committerJens Axboe <axboe@kernel.dk>2020-05-10 00:07:39 +0200
commitd51cfc53ade3189455a1b88ec7a2ff0c24597cf8 (patch)
tree83a07adb68c6ad8cfe6644cda7dabba3ba2901c9 /block/blk-cgroup.c
parentbdi: move bdi_dev_name out of line (diff)
downloadlinux-d51cfc53ade3189455a1b88ec7a2ff0c24597cf8.tar.xz
linux-d51cfc53ade3189455a1b88ec7a2ff0c24597cf8.zip
bdi: use bdi_dev_name() to get device name
Use the common interface bdi_dev_name() to get device name. Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Add missing <linux/backing-dev.h> include BFQ Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r--block/blk-cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index c5dc833212e1..930212c1a512 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -496,7 +496,7 @@ 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 bdi_dev_name(blkg->q->backing_dev_info);
return NULL;
}