Lines Matching defs:region

17 #define DM_MSG_PREFIX "dirty region log"
377 DMWARN("wrong number of arguments to dirty region log");
388 "dirty region log: %s", argv[1]);
395 DMWARN("invalid region size %s", argv[0]);
548 DMWARN("wrong number of arguments to disk dirty region log");
594 DMWARN("%s: Failed to read header on dirty region log device",
640 DMWARN("%s: Failed to write header on dirty region log device",
661 static int core_is_clean(struct dm_dirty_log *log, region_t region)
664 return log_test_bit(lc->clean_bits, region);
667 static int core_in_sync(struct dm_dirty_log *log, region_t region, int block)
670 return log_test_bit(lc->sync_bits, region);
719 static void core_mark_region(struct dm_dirty_log *log, region_t region)
722 log_clear_bit(lc, lc->clean_bits, region);
725 static void core_clear_region(struct dm_dirty_log *log, region_t region)
729 log_set_bit(lc, lc->clean_bits, region);
732 static int core_get_resync_work(struct dm_dirty_log *log, region_t *region)
740 *region = find_next_zero_bit_le(lc->sync_bits,
743 lc->sync_search = *region + 1;
745 if (*region >= lc->region_count)
748 } while (log_test_bit(lc->recovering_bits, *region));
750 log_set_bit(lc, lc->recovering_bits, *region);
754 static void core_set_region_sync(struct dm_dirty_log *log, region_t region,
759 log_clear_bit(lc, lc->recovering_bits, region);
761 log_set_bit(lc, lc->sync_bits, region);
763 } else if (log_test_bit(lc->sync_bits, region)) {
765 log_clear_bit(lc, lc->sync_bits, region);
887 MODULE_DESCRIPTION(DM_NAME " dirty region log");