diff options
author | NeilBrown <neilb@suse.de> | 2010-10-18 19:03:39 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-10-28 02:32:26 -0400 |
commit | 57dab0bdf689d42972975ec646d862b0900a4bf3 (patch) | |
tree | d136f69b8a68850e40844397ebaffde31787c988 /drivers/md/raid10.c | |
parent | 4b532c9b8c87eb8e51605c4d08dfb5139c758dc5 (diff) |
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>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index f0d082f749be..387fe4b4fab7 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1820,7 +1820,7 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i | |||
1820 | int disk; | 1820 | int disk; |
1821 | int i; | 1821 | int i; |
1822 | int max_sync; | 1822 | int max_sync; |
1823 | int sync_blocks; | 1823 | sector_t sync_blocks; |
1824 | 1824 | ||
1825 | sector_t sectors_skipped = 0; | 1825 | sector_t sectors_skipped = 0; |
1826 | int chunks_skipped = 0; | 1826 | int chunks_skipped = 0; |