]> err.no Git - linux-2.6/blobdiff - include/linux/raid/raid1.h
Pull novell-bugzilla-156426 into release branch
[linux-2.6] / include / linux / raid / raid1.h
index cbe4238d3f9fd2f3be46bc5f5339919a00a44cd2..3009c813d83d33d2748804d4db1081bce811cb5f 100644 (file)
@@ -109,6 +109,13 @@ struct r1bio_s {
        /* DO NOT PUT ANY NEW FIELDS HERE - bios array is contiguously alloced*/
 };
 
+/* when we get a read error on a read-only array, we redirect to another
+ * device without failing the first device, or trying to over-write to
+ * correct the read error.  To keep track of bad blocks on a per-bio
+ * level, we store IO_BLOCKED in the appropriate 'bios' pointer
+ */
+#define IO_BLOCKED ((struct bio*)1)
+
 /* bits for r1bio.state */
 #define        R1BIO_Uptodate  0
 #define        R1BIO_IsSync    1
@@ -123,6 +130,6 @@ struct r1bio_s {
  * with failure when last write completes (and all failed).
  * Record that bi_end_io was called with this flag...
  */
-#define        R1BIO_Returned 4
+#define        R1BIO_Returned 6
 
 #endif