block: Correct a documentation comment in blk-cgroup.c
authorNicky Chorley <ndchorley@gmail.com>
Sun, 14 Jan 2024 19:10:56 +0000 (19:10 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Jan 2024 14:23:38 +0000 (07:23 -0700)
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.

Signed-off-by: Nicky Chorley <ndchorley@gmail.com>
Link: https://lore.kernel.org/r/20240114191056.6992-1-ndchorley@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c

index e303fd31731377cae25738cd82beea6b96a4d1b9..ff93c385ba5afb6920b53fdbcf96bd5d3970d17a 100644 (file)
@@ -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)