diff options
author | NeilBrown <neilb@suse.de> | 2009-06-16 08:50:35 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-06-16 08:50:35 +0200 |
commit | 49f357a22b3fa3eeac042dfa0a6cae920c174e48 (patch) | |
tree | 55d90a158e990ea38c2487167c3d9a4f7f7943cf /drivers/md/raid0.h | |
parent | md: raid0: Fix a memory leak when stopping a raid0 array. (diff) | |
download | linux-49f357a22b3fa3eeac042dfa0a6cae920c174e48.tar.xz linux-49f357a22b3fa3eeac042dfa0a6cae920c174e48.zip |
md: raid0: remove ->sectors from the strip_zone structure.
storing ->sectors is redundant as is can be computed from the
difference z->zone_end - (z-1)->zone_end
The one place where it is used, it is just as efficient to use
a zone_end value instead.
And removing it makes strip_zone smaller, so they array of these that
is searched on every request has a better chance to say in cache.
So discard the field and get the value from elsewhere.
Signed-off-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 dbcf1da916b7..124ba34c8eed 100644 --- a/drivers/md/raid0.h +++ b/drivers/md/raid0.h @@ -5,7 +5,6 @@ struct strip_zone { sector_t zone_end; /* Start of the next zone (in sectors) */ sector_t dev_start; /* Zone offset in real dev (in sectors) */ - sector_t sectors; /* Zone size in sectors */ int nb_dev; /* # of devices attached to the zone */ mdk_rdev_t **dev; /* Devices attached to the zone */ }; |