diff options
author | NeilBrown <neilb@suse.de> | 2010-10-19 01:03:39 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-10-28 08:32:26 +0200 |
commit | 57dab0bdf689d42972975ec646d862b0900a4bf3 (patch) | |
tree | d136f69b8a68850e40844397ebaffde31787c988 /drivers/md/raid5.c | |
parent | md: remove md_mutex locking. (diff) | |
download | linux-57dab0bdf689d42972975ec646d862b0900a4bf3.tar.xz linux-57dab0bdf689d42972975ec646d862b0900a4bf3.zip |
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 '')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 31140d1259dc..8abc159b377a 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -4360,7 +4360,7 @@ static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *ski raid5_conf_t *conf = mddev->private; struct stripe_head *sh; sector_t max_sector = mddev->dev_sectors; - int sync_blocks; + sector_t sync_blocks; int still_degraded = 0; int i; |