Skip to content

Commit 521277d

Browse files
ndchorleyaxboe
authored andcommitted
block: Correct a documentation comment in blk-cgroup.c
Commit 99e6038 ("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>
1 parent 95931a2 commit 521277d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static inline struct blkcg *blkcg_parent(struct blkcg *blkcg)
300300
* @disk: gendisk the new blkg is associated with
301301
* @gfp_mask: allocation mask to use
302302
*
303-
* Allocate a new blkg assocating @blkcg and @q.
303+
* Allocate a new blkg associating @blkcg and @disk.
304304
*/
305305
static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct gendisk *disk,
306306
gfp_t gfp_mask)

0 commit comments

Comments
 (0)