Lines Matching defs:region

24 	region_t region;
60 * represents the first region that needs recovery. IOW, the
68 * Workqueue for flush of clear region requests.
274 /* Since the region size does not change, get it now */
280 DMERR("Failed to get region size of dirty log");
402 * Check whether a region is clean. If there is any sort of
407 static int userspace_is_clean(struct dm_dirty_log *log, region_t region)
410 uint64_t region64 = (uint64_t)region;
426 * Check if the region is in-sync. If there is any sort
428 * the region is not in sync.
434 static int userspace_in_sync(struct dm_dirty_log *log, region_t region,
438 uint64_t region64 = region;
446 * failure and mark the region out-of-sync. If we don't go
447 * to userspace to ask, we might think the region is in-sync
452 * There still might be a problem if the mirror caches the region
473 (char *)&fe->region,
474 sizeof(fe->region),
500 group[count] = fe->region;
607 * When there are only clear region requests,
648 static void userspace_mark_region(struct dm_dirty_log *log, region_t region)
660 fe->region = region;
672 * fail. It would simply mean we can't clear the region.
674 * the region will be re-sync'ed on a reload of the mirror
677 static void userspace_clear_region(struct dm_dirty_log *log, region_t region)
685 * the region. This doesn't hurt us in any way, except
686 * to cause the region to be resync'ed when the
691 DMERR("Failed to allocate memory to clear region.");
697 fe->region = region;
707 * Get a region that needs recovery. It is valid to return
710 * Returns: 1 if region filled, 0 if no work, <0 on error
712 static int userspace_get_resync_work(struct dm_dirty_log *log, region_t *region)
729 *region = pkg.r;
736 * Set the sync status of a given region. This function
740 region_t region, int in_sync)
748 pkg.r = region;
830 * Returns: 1 if region recovering, 0 otherwise
833 region_t region)
836 uint64_t region64 = region;
852 if (region < lc->in_sync_hint)