summaryrefslogtreecommitdiffstats
path: root/sys/geom/mirror/g_mirror.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-09-27 19:32:26 +0000
committerpjd <pjd@FreeBSD.org>2004-09-27 19:32:26 +0000
commitcad6af1c8fe52138765eb6bdda35bc074d8a938e (patch)
treebf7d56f18d22724c7fd88e035073eece697a7fda /sys/geom/mirror/g_mirror.c
parent6e31d065d37925f87772a7775c7dee18db982169 (diff)
downloadFreeBSD-src-cad6af1c8fe52138765eb6bdda35bc074d8a938e.zip
FreeBSD-src-cad6af1c8fe52138765eb6bdda35bc074d8a938e.tar.gz
Minor, but very important condition fix. The current one can never be true.
Diffstat (limited to 'sys/geom/mirror/g_mirror.c')
-rw-r--r--sys/geom/mirror/g_mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index e40532a..61cec14 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -1234,7 +1234,7 @@ g_mirror_register_request(struct bio *bp)
else if (bp->bio_offset + bp->bio_length >
sync->ds_offset_done &&
(bp->bio_offset < sync->ds_resync ||
- sync->ds_resync != -1)) {
+ sync->ds_resync == -1)) {
sync->ds_resync = bp->bio_offset -
(bp->bio_offset %
G_MIRROR_SYNC_BLOCK_SIZE);
OpenPOWER on IntegriCloud