diff options
author | NeilBrown <neilb@suse.de> | 2009-06-16 02:50:52 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-06-16 02:50:52 -0400 |
commit | b414579f4573b6dc8583e31b01dcffd13f49fd62 (patch) | |
tree | 08358cac251421380642dac0fdeb3bc296a97232 /drivers/md/raid0.h | |
parent | 49f357a22b3fa3eeac042dfa0a6cae920c174e48 (diff) |
md: raid0: remove ->dev pointer from strip_zone structure
If we treat conf->devlist more like a 2 dimensional array,
we can get the devlist for a particular zone simply by indexing
that array, so we don't need to store the pointers to subarrays
in strip_zone. This makes strip_zone smaller and so (hopefully)
searches faster.
Signed-of-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid0.h')
-rw-r--r-- | drivers/md/raid0.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/raid0.h b/drivers/md/raid0.h index 124ba34c8eed..7b3605e570c0 100644 --- a/drivers/md/raid0.h +++ b/drivers/md/raid0.h | |||
@@ -6,7 +6,6 @@ struct strip_zone | |||
6 | sector_t zone_end; /* Start of the next zone (in sectors) */ | 6 | sector_t zone_end; /* Start of the next zone (in sectors) */ |
7 | sector_t dev_start; /* Zone offset in real dev (in sectors) */ | 7 | sector_t dev_start; /* Zone offset in real dev (in sectors) */ |
8 | int nb_dev; /* # of devices attached to the zone */ | 8 | int nb_dev; /* # of devices attached to the zone */ |
9 | mdk_rdev_t **dev; /* Devices attached to the zone */ | ||
10 | }; | 9 | }; |
11 | 10 | ||
12 | struct raid0_private_data | 11 | struct raid0_private_data |