Skip to content

Commit c642808

Browse files
Andreas GruenbacherAl Viro
Andreas Gruenbacher
authored and
Al Viro
committed
vfs: Improve the bio_add_page() and bio_add_pc_page() descriptions
The descriptions of bio_add_page() and bio_add_pc_page() are slightly inconsistent; improve them. Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 55b23bd commit c642808

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

fs/bio.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,11 @@ static int __bio_add_page(struct request_queue *q, struct bio *bio, struct page
638638
* @offset: vec entry offset
639639
*
640640
* Attempt to add a page to the bio_vec maplist. This can fail for a
641-
* number of reasons, such as the bio being full or target block
642-
* device limitations. The target block device must allow bio's
643-
* smaller than PAGE_SIZE, so it is always possible to add a single
644-
* page to an empty bio. This should only be used by REQ_PC bios.
641+
* number of reasons, such as the bio being full or target block device
642+
* limitations. The target block device must allow bio's up to PAGE_SIZE,
643+
* so it is always possible to add a single page to an empty bio.
644+
*
645+
* This should only be used by REQ_PC bios.
645646
*/
646647
int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page *page,
647648
unsigned int len, unsigned int offset)
@@ -659,10 +660,9 @@ EXPORT_SYMBOL(bio_add_pc_page);
659660
* @offset: vec entry offset
660661
*
661662
* Attempt to add a page to the bio_vec maplist. This can fail for a
662-
* number of reasons, such as the bio being full or target block
663-
* device limitations. The target block device must allow bio's
664-
* smaller than PAGE_SIZE, so it is always possible to add a single
665-
* page to an empty bio.
663+
* number of reasons, such as the bio being full or target block device
664+
* limitations. The target block device must allow bio's up to PAGE_SIZE,
665+
* so it is always possible to add a single page to an empty bio.
666666
*/
667667
int bio_add_page(struct bio *bio, struct page *page, unsigned int len,
668668
unsigned int offset)

0 commit comments

Comments
 (0)