patch-2.4.25 linux-2.4.25/drivers/md/raid1.c

Next file: linux-2.4.25/drivers/media/video/Config.in
Previous file: linux-2.4.25/drivers/md/lvm.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/md/raid1.c linux-2.4.25/drivers/md/raid1.c
@@ -1436,7 +1436,7 @@
 	block_nr = sector_nr;
 	bsize = 512;
 	while (!(block_nr & 1) && bsize < PAGE_SIZE
-			&& (block_nr+2)*(bsize>>9) < (mddev->sb->size *2)) {
+			&& (block_nr+2)*(bsize>>9) <= (mddev->sb->size *2)) {
 		block_nr >>= 1;
 		bsize <<= 1;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)