Skip to content

Commit 9e630d9

Browse files
johnpgarrykawasaki
authored andcommitted
block: Correct comment on bio_alloc_clone()
Correct the comment that the source bio must not be freed before the clone. Signed-off-by: John Garry <[email protected]>
1 parent 14f6b99 commit 9e630d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/bio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static int __bio_clone(struct bio *bio, struct bio *bio_src, gfp_t gfp)
900900
* Allocate a new bio that is a clone of @bio_src. The caller owns the returned
901901
* bio, but not the actual data it points to.
902902
*
903-
* The caller must ensure that the return bio is not freed before @bio_src.
903+
* The caller must ensure that @bio_src is not freed before the returned bio.
904904
*/
905905
struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src,
906906
gfp_t gfp, struct bio_set *bs)

0 commit comments

Comments
 (0)