aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@kernel.org>2011-05-27 08:52:09 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-05-27 09:43:00 -0400
commitc642808454ac81d6a6701da6022e93bbe47bb38b (patch)
tree0367c04b6fb5f43cb117d4bac1d2bf39db08495f
parent55b23bde19c08f14127a27d461a4e079942c7258 (diff)
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 <agruen@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/bio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/bio.c b/fs/bio.c
index 840a0d755248..9bfade8a609b 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -638,10 +638,11 @@ static int __bio_add_page(struct request_queue *q, struct bio *bio, struct page
638 * @offset: vec entry offset 638 * @offset: vec entry offset
639 * 639 *
640 * Attempt to add a page to the bio_vec maplist. This can fail for a 640 * 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 641 * number of reasons, such as the bio being full or target block device
642 * device limitations. The target block device must allow bio's 642 * limitations. The target block device must allow bio's up to PAGE_SIZE,
643 * smaller than PAGE_SIZE, so it is always possible to add a single 643 * so it is always possible to add a single page to an empty bio.
644 * page to an empty bio. This should only be used by REQ_PC bios. 644 *
645 * This should only be used by REQ_PC bios.
645 */ 646 */
646int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page *page, 647int bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page *page,
647 unsigned int len, unsigned int offset) 648 unsigned int len, unsigned int offset)
@@ -659,10 +660,9 @@ EXPORT_SYMBOL(bio_add_pc_page);
659 * @offset: vec entry offset 660 * @offset: vec entry offset
660 * 661 *
661 * Attempt to add a page to the bio_vec maplist. This can fail for a 662 * 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 * number of reasons, such as the bio being full or target block device
663 * device limitations. The target block device must allow bio's 664 * limitations. The target block device must allow bio's up to PAGE_SIZE,
664 * smaller than PAGE_SIZE, so it is always possible to add a single 665 * so it is always possible to add a single page to an empty bio.
665 * page to an empty bio.
666 */ 666 */
667int bio_add_page(struct bio *bio, struct page *page, unsigned int len, 667int bio_add_page(struct bio *bio, struct page *page, unsigned int len,
668 unsigned int offset) 668 unsigned int offset)