]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/dm-log.h
V4L/DVB (6324): fix videobuf_cgmbuf export
[linux-2.6-omap-h63xx.git] / drivers / md / dm-log.h
index 5ae5309ebf2808dea579d2cb0b9e0d7fa8beda48..3fae87eb59631bcaf77c82b0924e363716643b0c 100644 (file)
@@ -32,7 +32,8 @@ struct dirty_log_type {
         * There are times when we don't want the log to touch
         * the disk.
         */
-       int (*suspend)(struct dirty_log *log);
+       int (*presuspend)(struct dirty_log *log);
+       int (*postsuspend)(struct dirty_log *log);
        int (*resume)(struct dirty_log *log);
 
        /*
@@ -90,12 +91,12 @@ struct dirty_log_type {
        int (*get_resync_work)(struct dirty_log *log, region_t *region);
 
        /*
-        * This notifies the log that the resync of an area has
-        * been completed.  The log should then mark this region
-        * as CLEAN.
+        * This notifies the log that the resync status of a region
+        * has changed.  It also clears the region from the recovering
+        * list (if present).
         */
-       void (*complete_resync_work)(struct dirty_log *log,
-                                    region_t region, int success);
+       void (*set_region_sync)(struct dirty_log *log,
+                               region_t region, int in_sync);
 
         /*
         * Returns the number of regions that are in sync.