summaryrefslogtreecommitdiff
path: root/include/linux/raid/raid1.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:51:22 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:51:22 -0800
commitebf7768ec706d92dbf3e284116f22720e0f70da9 (patch)
treec1cb3d24e71ef0f7d9191c621fc9d16c5b25408b /include/linux/raid/raid1.h
parentc1dd448e7fd78512ac8a88b2723120fb77c2e121 (diff)
[PATCH] md: Discard the cmd field from r1_bio structure
From: NeilBrown <neilb@cse.unsw.edu.au> The only time it is really needed is to differentiate a retry-on-fail from a write-after-read-for-resync request to raid1d. So we use a bit in 'state' for that.
Diffstat (limited to 'include/linux/raid/raid1.h')
-rw-r--r--include/linux/raid/raid1.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/raid/raid1.h b/include/linux/raid/raid1.h
index a9d1161ccab3..08bb05fbfb29 100644
--- a/include/linux/raid/raid1.h
+++ b/include/linux/raid/raid1.h
@@ -54,7 +54,6 @@ struct r1bio_s {
atomic_t remaining; /* 'have we finished' count,
* used from IRQ handlers
*/
- int cmd;
sector_t sector;
unsigned long state;
mddev_t *mddev;
@@ -78,6 +77,6 @@ struct r1bio_s {
};
/* bits for r1bio.state */
-#define R1BIO_Uptodate 1
-
+#define R1BIO_Uptodate 0
+#define R1BIO_IsSync 1
#endif