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/bitmap.h | |
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/bitmap.h')
-rw-r--r-- | drivers/md/bitmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.h b/drivers/md/bitmap.h index e872a7bad6b8..931a7a7c3796 100644 --- a/drivers/md/bitmap.h +++ b/drivers/md/bitmap.h | |||
@@ -271,8 +271,8 @@ int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, | |||
271 | unsigned long sectors, int behind); | 271 | unsigned long sectors, int behind); |
272 | void bitmap_endwrite(struct bitmap *bitmap, sector_t offset, | 272 | void bitmap_endwrite(struct bitmap *bitmap, sector_t offset, |
273 | unsigned long sectors, int success, int behind); | 273 | unsigned long sectors, int success, int behind); |
274 | int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, int *blocks, int degraded); | 274 | int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded); |
275 | void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, int *blocks, int aborted); | 275 | void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted); |
276 | void bitmap_close_sync(struct bitmap *bitmap); | 276 | void bitmap_close_sync(struct bitmap *bitmap); |
277 | void bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector); | 277 | void bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector); |
278 | 278 | ||