You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user