Skip to contentSkip to conversation

block: Correct a documentation comment in blk-cgroup.c

PATCH Applied Nicky Chorley 2 participants 2 messages Jan 14, 2024 – Jan 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Correct a documentation comment in blk-cgroup.c

Commit 99e603874366
("blk-cgroup: pass a gendisk to the blkg allocation helpers") changed blkg_alloc() to take a struct gendisk instead of a struct request_queue, but the documentation comment still referred to q.

So, update that comment to refer to disk instead and fix a typo.

---
 block/blk-cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-cgroup.c +1 -1
index e303fd317313..ff93c385ba5a 100644
@@ -300,7 +300,7 @@ static inline struct blkcg *blkcg_parent(struct blkcg *blkcg)
  * @disk: gendisk the new blkg is associated with
  * @gfp_mask: allocation mask to use
  *
- * Allocate a new blkg assocating @blkcg and @q.
+ * Allocate a new blkg associating @blkcg and @disk.
  */
 static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct gendisk *disk,
 				   gfp_t gfp_mask)
Signature · 1 line
2.35.3
maintainer Applied
#1 lore raw
Quoted 8 lines · Nicky Chorley

Commit 99e603874366
("blk-cgroup: pass a gendisk to the blkg allocation helpers") changed blkg_alloc() to take a struct gendisk instead of a struct request_queue, but the documentation comment still referred to q.

So, update that comment to refer to disk instead and fix a typo.

[...]

Applied, thanks!

[1/1] block: Correct a documentation comment in blk-cgroup.c

      commit: 521277d12b5a75982d4f642d2ee22db8d7f986dd

Best regards,

Signature · 1 line
Jens Axboe