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
+2 -2
View File
@@ -1245,7 +1245,7 @@ static void end_sync_write(struct bio *bio, int error)
break;
}
if (!uptodate) {
int sync_blocks = 0;
sector_t sync_blocks = 0;
sector_t s = r1_bio->sector;
long sectors_to_go = r1_bio->sectors;
/* make sure these bits doesn't get cleared. */
@@ -1705,7 +1705,7 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i
int i;
int wonly = -1;
int write_targets = 0, read_targets = 0;
int sync_blocks;
sector_t sync_blocks;
int still_degraded = 0;
if (!conf->r1buf_pool)