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
- Lines: 9
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/md/raid1.c
- Orig date:
2003-06-13 07:51:34.000000000 -0700
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)