diff options
Diffstat (limited to 'drivers/md/dm-log.c')
-rw-r--r-- | drivers/md/dm-log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index 74039db846ba..d73779a42417 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c | |||
@@ -545,7 +545,8 @@ static int core_get_resync_work(struct dirty_log *log, region_t *region) | |||
545 | return 0; | 545 | return 0; |
546 | 546 | ||
547 | do { | 547 | do { |
548 | *region = find_next_zero_bit((unsigned long *) lc->sync_bits, | 548 | *region = ext2_find_next_zero_bit( |
549 | (unsigned long *) lc->sync_bits, | ||
549 | lc->region_count, | 550 | lc->region_count, |
550 | lc->sync_search); | 551 | lc->sync_search); |
551 | lc->sync_search = *region + 1; | 552 | lc->sync_search = *region + 1; |