From 829c0864cb1965cf8ec866fbebd720ee8e8754ed Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 27 Sep 2004 19:32:26 +0000 Subject: [PATCH] Minor, but very important condition fix. The current one can never be true. --- sys/geom/mirror/g_mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index e40532ad23f..61cec14ac68 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);