summaryrefslogtreecommitdiffstats
path: root/include/linux/raid/raid5.h
diff options
context:
space:
mode:
authorNeilBrown2006-01-06 09:20:17 +0100
committerLinus Torvalds2006-01-06 17:34:03 +0100
commitca65b73bd9c301d243df93780f7b26579e6c9204 (patch)
tree1ca8157e11033989ee94c20b1f2d4c936f9dc09c /include/linux/raid/raid5.h
parent[PATCH] md: write intent bitmap support for raid10 (diff)
downloadkernel-qcow2-linux-ca65b73bd9c301d243df93780f7b26579e6c9204.tar.gz
kernel-qcow2-linux-ca65b73bd9c301d243df93780f7b26579e6c9204.tar.xz
kernel-qcow2-linux-ca65b73bd9c301d243df93780f7b26579e6c9204.zip
[PATCH] md: fix raid6 resync check/repair code
raid6 currently does not check the P/Q syndromes when doing a resync, it just calculates the correct value and writes it. Doing the check can reduce writes (often to 0) for a resync, and it is needed to properly implement the echo check > sync_action operation. This patch implements the appropriate checks and tidies up some related code. It also allows raid6 user-requested resync to bypass the intent bitmap. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/raid5.h')
-rw-r--r--include/linux/raid/raid5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h
index f025ba6fb14c..e9c1c0d4f90b 100644
--- a/include/linux/raid/raid5.h
+++ b/include/linux/raid/raid5.h
@@ -228,6 +228,8 @@ struct raid5_private_data {
* Cleared when a sync completes.
*/
+ struct page *spare_page; /* Used when checking P/Q in raid6 */
+
/*
* Free stripes pool
*/