diff options
author | phk <phk@FreeBSD.org> | 2003-10-12 11:35:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-12 11:35:55 +0000 |
commit | 9d23a3014f88535464533de74c3e0a9e9c24e4b8 (patch) | |
tree | 15b58492b40257adf00bff0a51e7100d5fded848 /sys/geom | |
parent | ed350390edb89bf4830a5f466fecd17b7746db82 (diff) | |
download | FreeBSD-src-9d23a3014f88535464533de74c3e0a9e9c24e4b8.zip FreeBSD-src-9d23a3014f88535464533de74c3e0a9e9c24e4b8.tar.gz |
Assume that bp->bio_offset is correctly initialized.
This fixes non-power-of-2 blocksize GEOM I/O.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_dev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index ef822e1..1965225 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -386,7 +386,6 @@ g_dev_strategy(struct bio *bp) tsleep(&bp, PRIBIO, "gdstrat", hz / 10); } KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place")); - bp2->bio_offset = (off_t)bp->bio_blkno << DEV_BSHIFT; KASSERT(bp2->bio_offset >= 0, ("Negative bio_offset (%jd) on bio %p", (intmax_t)bp2->bio_offset, bp)); |