projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b642b
)
blk-cgroup: remove the !bdi->dev check in blkg_dev_name
author
Christoph Hellwig
<hch@lst.de>
Fri, 3 Feb 2023 15:03:46 +0000
(16:03 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 3 Feb 2023 15:20:05 +0000
(08:20 -0700)
bdi_dev_name already performs the same check.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link:
https://lore.kernel.org/r/20230203150400.3199230-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
patch
|
blob
|
history
diff --git
a/block/blk-cgroup.c
b/block/blk-cgroup.c
index 1038688568926ea82b208358011a8771f34c8ac5..0b3226cbf3f25d4f6b3695769377c14a729109a5 100644
(file)
--- a/
block/blk-cgroup.c
+++ b/
block/blk-cgroup.c
@@
-572,7
+572,7
@@
static int blkcg_reset_stats(struct cgroup_subsys_state *css,
const char *blkg_dev_name(struct blkcg_gq *blkg)
{
- if (!blkg->q->disk
|| !blkg->q->disk->bdi->dev
)
+ if (!blkg->q->disk)
return NULL;
return bdi_dev_name(blkg->q->disk->bdi);
}