summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2003-02-12 16:30:46 +0000
committertegge <tegge@FreeBSD.org>2003-02-12 16:30:46 +0000
commit4d5cb6df0d6698293fad1b4649be07a2fbc461a9 (patch)
tree1cf9b2220a560f3f2846259cdeb9bf7a3aece97f /sys
parent5d9e45b106945991d038d0d5aee5fd49f1568a6e (diff)
downloadFreeBSD-src-4d5cb6df0d6698293fad1b4649be07a2fbc461a9.zip
FreeBSD-src-4d5cb6df0d6698293fad1b4649be07a2fbc461a9.tar.gz
Correctly set bio_data in cloned children when cutting up large requests.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index ba3d961..4688bcf 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -212,7 +212,7 @@ g_disk_start(struct bio *bp)
do {
bp2->bio_offset += off;
bp2->bio_length -= off;
- bp2->bio_data -= off;
+ bp2->bio_data += off;
if (bp2->bio_length > dp->d_maxsize) {
/*
* XXX: If we have a stripesize we should really
OpenPOWER on IntegriCloud