]> git.hungrycats.org Git - linux/commit
[PATCH] md: assorted minor md/raid1 fixes
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 24 Aug 2004 04:28:42 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:28:42 +0000 (21:28 -0700)
commitf57252ba00f6be694f0665bafbd18bc03d85e393
tree96688a626556cab51b421e44922513d011da3d93
parent32c31806b1d70b73aa7cab95308199f3d710ff3d
[PATCH] md: assorted minor md/raid1 fixes

1/ rationalise read_balance and "map" in raid1.  Discard map and
   tidyup the interface to read_balance so it can be used instead.

2/ use offsetof rather than a caclulation to find the size of an
   structure with a var-length array at the end.

3/ remove some meaningless #defines

4/ use printk_ratelimit to limit reports of failed sectors being redirected.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid1.c