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>
This commit is contained in:
NeilBrown
2010-10-19 10:03:39 +11:00
parent 4b532c9b8c
commit 57dab0bdf6
5 changed files with 19 additions and 19 deletions

View File

@ -1820,7 +1820,7 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i
int disk;
int i;
int max_sync;
int sync_blocks;
sector_t sync_blocks;
sector_t sectors_skipped = 0;
int chunks_skipped = 0;