aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-log.h
diff options
context:
space:
mode:
authorJonathan E Brassow <jbrassow@redhat.com>2006-12-08 05:41:11 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:09 -0500
commitf3ee6b2f621fec7bc8bfe43fb465e938c37c8d20 (patch)
tree3d790014bbd3280fc7b0232dc212f4b34f06092f /drivers/md/dm-log.h
parent31c93a0c29bf96efd806ccf4ee81cacf04f255de (diff)
[PATCH] dm: log: rename complete_resync_work
The complete_resync_work function only provides the ability to change an out-of-sync region to in-sync. This patch enhances the function to allow us to change the status from in-sync to out-of-sync as well, something that is needed when a mirror write to one of the devices or an initial resync on a given region fails. Signed-off-by: Jonathan E Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Cc: dm-devel@redhat.com Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/dm-log.h')
-rw-r--r--drivers/md/dm-log.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/dm-log.h b/drivers/md/dm-log.h
index 5ae5309ebf28..86a301c8daf1 100644
--- a/drivers/md/dm-log.h
+++ b/drivers/md/dm-log.h
@@ -90,12 +90,12 @@ struct dirty_log_type {
90 int (*get_resync_work)(struct dirty_log *log, region_t *region); 90 int (*get_resync_work)(struct dirty_log *log, region_t *region);
91 91
92 /* 92 /*
93 * This notifies the log that the resync of an area has 93 * This notifies the log that the resync status of a region
94 * been completed. The log should then mark this region 94 * has changed. It also clears the region from the recovering
95 * as CLEAN. 95 * list (if present).
96 */ 96 */
97 void (*complete_resync_work)(struct dirty_log *log, 97 void (*set_region_sync)(struct dirty_log *log,
98 region_t region, int success); 98 region_t region, int in_sync);
99 99
100 /* 100 /*
101 * Returns the number of regions that are in sync. 101 * Returns the number of regions that are in sync.