diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-02-28 18:41:12 (GMT) |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-02-28 18:41:12 (GMT) |
commit | 6fc2de06ef1e691d032aa572478c905b7495a274 (patch) | |
tree | 778df1440b045d67c997d7bd79ee3c6c11f57638 /fs/bio.c | |
parent | 58c24a61614f5da290068e47fc5ec65370eb61dd (diff) | |
parent | 8a78362c4eefc1deddbefe2c7f38aabbc2429d6b (diff) | |
download | linux-6fc2de06ef1e691d032aa572478c905b7495a274.tar.xz |
Merge branch 'for-2.6.34-next' into for-2.6.34
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -507,10 +507,8 @@ int bio_get_nr_vecs(struct block_device *bdev) int nr_pages; nr_pages = ((queue_max_sectors(q) << 9) + PAGE_SIZE - 1) >> PAGE_SHIFT; - if (nr_pages > queue_max_phys_segments(q)) - nr_pages = queue_max_phys_segments(q); - if (nr_pages > queue_max_hw_segments(q)) - nr_pages = queue_max_hw_segments(q); + if (nr_pages > queue_max_segments(q)) + nr_pages = queue_max_segments(q); return nr_pages; } @@ -575,8 +573,7 @@ static int __bio_add_page(struct request_queue *q, struct bio *bio, struct page * make this too complex. */ - while (bio->bi_phys_segments >= queue_max_phys_segments(q) - || bio->bi_phys_segments >= queue_max_hw_segments(q)) { + while (bio->bi_phys_segments >= queue_max_segments(q)) { if (retried_segments) return 0; |