summaryrefslogtreecommitdiff
path: root/include/linux/raid
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:51:31 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:51:31 -0800
commitd0d464b1c7a85af0de259ee523ac438ea3dbe2a9 (patch)
tree5731ea35f66496112c9e2a818cbf612e66333a34 /include/linux/raid
parentebf7768ec706d92dbf3e284116f22720e0f70da9 (diff)
[PATCH] md: Remove some un-needed fields from r1bio_s
From: NeilBrown <neilb@cse.unsw.edu.au> next_r1 is never used, so it can just go. read_bio isn't needed as we can easily use one of the pointers in the write_bios array - write_bios[->read_disk]. So rename "write_bios" to "bios" and store the pointer to the read bio in there.
Diffstat (limited to 'include/linux/raid')
-rw-r--r--include/linux/raid/raid1.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/raid/raid1.h b/include/linux/raid/raid1.h
index 08bb05fbfb29..b888f6ff9dc1 100644
--- a/include/linux/raid/raid1.h
+++ b/include/linux/raid/raid1.h
@@ -62,18 +62,16 @@ struct r1bio_s {
*/
struct bio *master_bio;
/*
- * if the IO is in READ direction, then this bio is used:
+ * if the IO is in READ direction, then this is where we read
*/
- struct bio *read_bio;
int read_disk;
- r1bio_t *next_r1; /* next for retry or in free list */
struct list_head retry_list;
/*
* if the IO is in WRITE direction, then multiple bios are used.
* We choose the number when they are allocated.
*/
- struct bio *write_bios[0];
+ struct bio *bios[0];
};
/* bits for r1bio.state */