Correctly set bio_data in cloned children when cutting up large requests.

This commit is contained in:
Tor Egge 2003-02-12 16:30:46 +00:00
parent fe84a7c1b9
commit 96365d3dcf

View File

@ -212,7 +212,7 @@ g_disk_start(struct bio *bp)
do { do {
bp2->bio_offset += off; bp2->bio_offset += off;
bp2->bio_length -= off; bp2->bio_length -= off;
bp2->bio_data -= off; bp2->bio_data += off;
if (bp2->bio_length > dp->d_maxsize) { if (bp2->bio_length > dp->d_maxsize) {
/* /*
* XXX: If we have a stripesize we should really * XXX: If we have a stripesize we should really