summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-10-11 16:48:43 +1100
committerNeilBrown <neilb@suse.de>2011-10-11 16:48:43 +1100
commit9f2c9d12bcc53fcb3b787023723754e84d1aef8b (patch)
tree85fbc63c6e480bdebe06529e1af4d3d483d70452 /drivers/md/raid1.h
parent2b8bf3451d1e3133ebc3998721d14013a6c27114 (diff)
downloadlinux-9f2c9d12bcc53fcb3b787023723754e84d1aef8b.tar.bz2
md: remove typedefs: r10bio_t -> struct r10bio and r1bio_t -> struct r1bio
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.h')
-rw-r--r--drivers/md/raid1.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h
index 07e9cb91186b..d59e4676a1b0 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -21,9 +21,6 @@ struct pool_info {
int raid_disks;
};
-
-typedef struct r1bio_s r1bio_t;
-
struct r1_private_data_s {
struct mddev *mddev;
mirror_info_t *mirrors;
@@ -43,9 +40,9 @@ struct r1_private_data_s {
spinlock_t device_lock;
- /* list of 'r1bio_t' that need to be processed by raid1d, whether
- * to retry a read, writeout a resync or recovery block, or
- * anything else.
+ /* list of 'struct r1bio' that need to be processed by raid1d,
+ * whether to retry a read, writeout a resync or recovery
+ * block, or anything else.
*/
struct list_head retry_list;
@@ -80,8 +77,8 @@ struct r1_private_data_s {
* mempools - it changes when the array grows or shrinks
*/
struct pool_info *poolinfo;
- mempool_t *r1bio_pool;
- mempool_t *r1buf_pool;
+ mempool_t *r1bio_pool;
+ mempool_t *r1buf_pool;
/* temporary buffer to synchronous IO when attempting to repair
* a read error.
@@ -104,7 +101,7 @@ typedef struct r1_private_data_s conf_t;
* for this RAID1 operation, and about their status:
*/
-struct r1bio_s {
+struct r1bio {
atomic_t remaining; /* 'have we finished' count,
* used from IRQ handlers
*/