linux/drivers/md
NeilBrown dd71cf6b27 md: tidy up status_resync to handle large arrays.
Two problems in status_resync.
1/ It still used Kilobytes as the basic block unit, while most code
   now uses sectors uniformly.
2/ It doesn't allow for the possibility that max_sectors exceeds
   the range of "unsigned long".

So
 - change "max_blocks" to "max_sectors", and store sector numbers
   in there and in 'resync'
 - Make 'rt' a 'sector_t' so it can temporarily hold the number of
   remaining sectors.
 - use sector_div rather than normal division.
 - change the magic '100' used to preserve precision to '32'.
   + making it a power of 2 makes division easier
   + it doesn't need to be as large as it was chosen when we averaged
     speed over the entire run.  Now we average speed over the last 30
     seconds or so.

Reported-by: "Mario 'BitKoenig' Holbe" <Mario.Holbe@TU-Ilmenau.DE>
Signed-off-by: NeilBrown <neilb@suse.de>
2009-05-07 12:49:35 +10:00
..
raid6test
.gitignore
bitmap.c md: fix some (more) errors with bitmaps on devices larger than 2TB. 2009-05-07 12:49:06 +10:00
bitmap.h
dm-bio-record.h
dm-crypt.c
dm-delay.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
dm-exception-store.c
dm-exception-store.h
dm-io.c
dm-ioctl.c dm: add integrity support 2009-04-09 00:27:12 +01:00
dm-kcopyd.c dm kcopyd: fix callback race 2009-04-09 00:27:17 +01:00
dm-linear.c dm: remove limited barrier support 2009-04-09 00:27:13 +01:00
dm-log.c
dm-mpath.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-raid1.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
dm-region-hash.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
dm-round-robin.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
dm-stripe.c
dm-sysfs.c
dm-table.c dm: remove limited barrier support 2009-04-09 00:27:13 +01:00
dm-target.c
dm-uevent.c
dm-uevent.h
dm-zero.c
dm.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
dm.h dm: remove limited barrier support 2009-04-09 00:27:13 +01:00
faulty.c
Kconfig
linear.c
linear.h
Makefile
md.c md: tidy up status_resync to handle large arrays. 2009-05-07 12:49:35 +10:00
md.h md: tiny md.h cleanups 2009-04-14 12:01:53 +10:00
mktables.c
multipath.c
multipath.h
raid0.c
raid0.h
raid1.c block: move bio list helpers into bio.h 2009-04-15 08:28:09 +02:00
raid1.h
raid5.c md: update sync_completed and reshape_position even more often. 2009-04-17 11:06:30 +10:00
raid5.h
raid6algos.c
raid6altivec.uc
raid6int.uc
raid6mmx.c
raid6recov.c
raid6sse1.c
raid6sse2.c
raid6x86.h
raid10.c md/raid10: don't clear bitmap during recovery if array will still be degraded. 2009-05-07 12:48:10 +10:00
raid10.h
unroll.pl