md: use sector_t in bitmap_get_counter
authorNeilBrown <neilb@suse.de>
Mon, 18 Oct 2010 23:03:39 +0000 (10:03 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 28 Oct 2010 06:32:26 +0000 (17:32 +1100)
commit57dab0bdf689d42972975ec646d862b0900a4bf3
treed136f69b8a68850e40844397ebaffde31787c988
parent4b532c9b8c87eb8e51605c4d08dfb5139c758dc5
md: use sector_t in bitmap_get_counter

bitmap_get_counter returns the number of sectors covered
by the counter in a pass-by-reference variable.
In some cases this can be very large, so make it a sector_t
for safety.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c
drivers/md/bitmap.h
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c