diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-log.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index ce5c5d6fc107..6a9261351848 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c | |||
@@ -466,6 +466,7 @@ static int disk_resume(struct dirty_log *log) | |||
466 | /* copy clean across to sync */ | 466 | /* copy clean across to sync */ |
467 | memcpy(lc->sync_bits, lc->clean_bits, size); | 467 | memcpy(lc->sync_bits, lc->clean_bits, size); |
468 | lc->sync_count = count_bits32(lc->clean_bits, lc->bitset_uint32_count); | 468 | lc->sync_count = count_bits32(lc->clean_bits, lc->bitset_uint32_count); |
469 | lc->sync_search = 0; | ||
469 | 470 | ||
470 | /* set the correct number of regions in the header */ | 471 | /* set the correct number of regions in the header */ |
471 | lc->header.nr_regions = lc->region_count; | 472 | lc->header.nr_regions = lc->region_count; |
@@ -480,6 +481,13 @@ static uint32_t core_get_region_size(struct dirty_log *log) | |||
480 | return lc->region_size; | 481 | return lc->region_size; |
481 | } | 482 | } |
482 | 483 | ||
484 | static int core_resume(struct dirty_log *log) | ||
485 | { | ||
486 | struct log_c *lc = (struct log_c *) log->context; | ||
487 | lc->sync_search = 0; | ||
488 | return 0; | ||
489 | } | ||
490 | |||
483 | static int core_is_clean(struct dirty_log *log, region_t region) | 491 | static int core_is_clean(struct dirty_log *log, region_t region) |
484 | { | 492 | { |
485 | struct log_c *lc = (struct log_c *) log->context; | 493 | struct log_c *lc = (struct log_c *) log->context; |
@@ -621,6 +629,7 @@ static struct dirty_log_type _core_type = { | |||
621 | .module = THIS_MODULE, | 629 | .module = THIS_MODULE, |
622 | .ctr = core_ctr, | 630 | .ctr = core_ctr, |
623 | .dtr = core_dtr, | 631 | .dtr = core_dtr, |
632 | .resume = core_resume, | ||
624 | .get_region_size = core_get_region_size, | 633 | .get_region_size = core_get_region_size, |
625 | .is_clean = core_is_clean, | 634 | .is_clean = core_is_clean, |
626 | .in_sync = core_in_sync, | 635 | .in_sync = core_in_sync, |