summaryrefslogtreecommitdiff
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorAndre Noll <maan@systemlinux.org>2009-06-18 08:45:55 +1000
committerNeilBrown <neilb@suse.de>2009-06-18 08:45:55 +1000
commit09c9e5fa1b93ad5b81c9dcf8ce3a5b9ae2ac31e4 (patch)
tree2b8767d6a94654944f18ad96347fa6fcddf1eda0 /drivers/md/raid5.h
parent664e7c413f1e90eceb0b2596dd73a0832faec058 (diff)
downloadlinux-3.10-09c9e5fa1b93ad5b81c9dcf8ce3a5b9ae2ac31e4.tar.gz
linux-3.10-09c9e5fa1b93ad5b81c9dcf8ce3a5b9ae2ac31e4.tar.bz2
linux-3.10-09c9e5fa1b93ad5b81c9dcf8ce3a5b9ae2ac31e4.zip
md: convert conf->chunk_size and conf->prev_chunk to sectors.
This kills some more shifts. Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index 1a25c9e252b..9459689c4ea 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -334,7 +334,8 @@ struct raid5_private_data {
struct hlist_head *stripe_hashtbl;
mddev_t *mddev;
struct disk_info *spare;
- int chunk_size, level, algorithm;
+ int chunk_sectors;
+ int level, algorithm;
int max_degraded;
int raid_disks;
int max_nr_stripes;
@@ -350,7 +351,8 @@ struct raid5_private_data {
*/
sector_t reshape_safe;
int previous_raid_disks;
- int prev_chunk, prev_algo;
+ int prev_chunk_sectors;
+ int prev_algo;
short generation; /* increments with every reshape */
unsigned long reshape_checkpoint; /* Time we last updated
* metadata */