md: Make mddev->chunk_size sector-based.
authorAndre Noll <maan@systemlinux.org>
Wed, 17 Jun 2009 22:45:01 +0000 (08:45 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:45:01 +0000 (08:45 +1000)
commit9d8f0363623b3da12c43007cf77f5e1a4e8a5964
tree0fee53971a397ade209dd36c4f1ed50db6450faf
parentfbb704efb784e2c8418e34dc3013af76bdd58101
md: Make mddev->chunk_size sector-based.

This patch renames the chunk_size field to chunk_sectors with the
implied change of semantics.  Since

is_power_of_2(chunk_size) = is_power_of_2(chunk_sectors << 9)
  = is_power_of_2(chunk_sectors)

these bits don't need an adjustment for the shift.

Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/linear.c
drivers/md/md.c
drivers/md/md.h
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c