diff options
author | Andre Noll <maan@systemlinux.org> | 2009-01-08 22:31:08 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-01-08 22:31:08 +0100 |
commit | ccacc7d2cf03114a24ab903f710118e9e5d43273 (patch) | |
tree | c856e2a17f6c6a26996a8cfba87680a2375061d5 /drivers/md/multipath.c | |
parent | md: raid0: Represent the size of strip zones in sectors. (diff) | |
download | linux-ccacc7d2cf03114a24ab903f710118e9e5d43273.tar.xz linux-ccacc7d2cf03114a24ab903f710118e9e5d43273.zip |
md: raid0: make hash_spacing and preshift sector-based.
This patch renames the hash_spacing and preshift members of struct
raid0_private_data to spacing and sector_shift respectively and
changes the semantics as follows:
We always have spacing = 2 * hash_spacing. In case
sizeof(sector_t) > sizeof(u32) we also have sector_shift = preshift + 1
while sector_shift = preshift = 0 otherwise.
Note that the values of nb_zone and zone are unaffected by these changes
because in the sector_div() preceeding the assignement of these two
variables both arguments double.
Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/multipath.c')
0 files changed, 0 insertions, 0 deletions