diff options
author | Andre Noll <maan@systemlinux.org> | 2009-03-31 14:33:13 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-31 14:33:13 +1100 |
commit | dd8ac336c13fd8afdb082ebacb1cddd5cf727889 (patch) | |
tree | 0baa8111d7406774525a1053be461135257d73d2 /drivers/md/md.h | |
parent | 58c0fed400603a802968b23ddf78f029c5a84e41 (diff) |
md: Represent raid device size in sectors.
This patch renames the "size" field of struct mdk_rdev_s to
"sectors" and changes this field to store sectors instead of
blocks.
All users of this field, linear.c, raid0.c and md.c, are fixed up
accordingly which gets rid of many multiplications and divisions.
Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 94612123623..c07ea911806 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -36,7 +36,7 @@ struct mdk_rdev_s { struct list_head same_set; /* RAID devices within the same set */ - sector_t size; /* Device size (in blocks) */ + sector_t sectors; /* Device size (in 512bytes sectors) */ mddev_t *mddev; /* RAID array if running */ int last_events; /* IO event timestamp */ |