diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-25 03:04:34 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-30 11:26:42 -0400 |
commit | 6601e44efd20efddc183c85131216200e90c5728 (patch) | |
tree | 05c4c5605e8c9d7a12d77619e61e7a7b373f7955 /block/bio.c | |
parent | 4713839dfe8269d27d83a33d1e39f9c2970eb31a (diff) |
block: remove bogus comments in __bio_add_pc_page
We are never called with file system pages by defintions for the
passthrough interface, and we also never undo any addition later
these days.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r-- | block/bio.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/block/bio.c b/block/bio.c index e717b303e1fb..de26dc18bceb 100644 --- a/block/bio.c +++ b/block/bio.c | |||
@@ -724,11 +724,6 @@ static int __bio_add_pc_page(struct request_queue *q, struct bio *bio, | |||
724 | if (((bio->bi_iter.bi_size + len) >> 9) > queue_max_hw_sectors(q)) | 724 | if (((bio->bi_iter.bi_size + len) >> 9) > queue_max_hw_sectors(q)) |
725 | return 0; | 725 | return 0; |
726 | 726 | ||
727 | /* | ||
728 | * For filesystems with a blocksize smaller than the pagesize | ||
729 | * we will often be called with the same page as last time and | ||
730 | * a consecutive offset. Optimize this special case. | ||
731 | */ | ||
732 | if (bio->bi_vcnt > 0) { | 727 | if (bio->bi_vcnt > 0) { |
733 | bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; | 728 | bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; |
734 | 729 | ||
@@ -760,10 +755,6 @@ static int __bio_add_pc_page(struct request_queue *q, struct bio *bio, | |||
760 | if (bio->bi_phys_segments >= queue_max_segments(q)) | 755 | if (bio->bi_phys_segments >= queue_max_segments(q)) |
761 | return 0; | 756 | return 0; |
762 | 757 | ||
763 | /* | ||
764 | * setup the new entry, we might clear it again later if we | ||
765 | * cannot add the page | ||
766 | */ | ||
767 | bvec = &bio->bi_io_vec[bio->bi_vcnt]; | 758 | bvec = &bio->bi_io_vec[bio->bi_vcnt]; |
768 | bvec->bv_page = page; | 759 | bvec->bv_page = page; |
769 | bvec->bv_len = len; | 760 | bvec->bv_len = len; |