Skip to contentSkip to conversation

block: Update comments that refer to __bio_map_user() and bio_map_user()

PATCH Applied Bart Van Assche 3 participants 3 messages Feb 1, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Update comments that refer to __bio_map_user() and bio_map_user()

Since __bio_map_user() and bio_map_user() have been removed, update the comments that still refer to these functions.

References: commit ddad8dd0a162 ("block: use blk_rq_map_user_iov to implement blk_rq_map_user")
Cc: Christoph Hellwig <[email protected]>
Cc: Ming Lei <[email protected]>
Cc: Jens Axboe <[email protected]>

---
 block/bio.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
block/bio.c +3 -3
index 9a2dd7145e83..4b564d0c3e29 100644
@@ -1394,7 +1394,7 @@ struct bio *bio_map_user_iov(struct request_queue *q,
 	bio_set_flag(bio, BIO_USER_MAPPED);
 
 	/*
-	 * subtle -- if __bio_map_user() ended up bouncing a bio,
+	 * subtle -- if bio_map_user_iov() ended up bouncing a bio,
 	 * it would normally disappear when its bi_end_io is run.
 	 * however, we need it for the unmap, so grab an extra
 	 * reference to it
@@ -1436,8 +1436,8 @@ static void __bio_unmap_user(struct bio *bio)
  *	bio_unmap_user	-	unmap a bio
  *	@bio:		the bio being unmapped
  *
- *	Unmap a bio previously mapped by bio_map_user(). Must be called with
- *	a process context.
+ *	Unmap a bio previously mapped by bio_map_user_iov(). Must be called from
+ *	process context.
  *
  *	bio_unmap_user() may sleep.
  */
Signature · 1 line
2.11.0
maintainer Applied
#2 lore raw
In reply to Bart Van Assche
Quoted 2 lines · Bart Van Assche

Since __bio_map_user() and bio_map_user() have been removed, update the comments that still refer to these functions.

Applied, thanks Bart.

Signature · 1 line
Jens Axboe