diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2008-08-15 04:20:02 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:03 -0400 |
commit | 5df97b91b5d7ed426034fcc84cb6e7cf682b8838 (patch) | |
tree | 727b9fb778f72d2b1ff44c007fb5209bacf67f4a /block/blk-core.c | |
parent | b8b3e16cfe6435d961f6aaebcfd52a1ff2a988c5 (diff) |
drop vmerge accounting
Remove hw_segments field from struct bio and struct request. Without virtual
merge accounting they have no purpose.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 1261516dd42a..2616cdd049a8 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -2026,7 +2026,6 @@ void blk_rq_bio_prep(struct request_queue *q, struct request *rq, | |||
2026 | 2026 | ||
2027 | if (bio_has_data(bio)) { | 2027 | if (bio_has_data(bio)) { |
2028 | rq->nr_phys_segments = bio_phys_segments(q, bio); | 2028 | rq->nr_phys_segments = bio_phys_segments(q, bio); |
2029 | rq->nr_hw_segments = bio_hw_segments(q, bio); | ||
2030 | rq->buffer = bio_data(bio); | 2029 | rq->buffer = bio_data(bio); |
2031 | } | 2030 | } |
2032 | rq->current_nr_sectors = bio_cur_sectors(bio); | 2031 | rq->current_nr_sectors = bio_cur_sectors(bio); |