git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm log: add flush callback fn
[safe/jmp/linux-2.6]
/
include
/
linux
/
dm-dirty-log.h
diff --git
a/include/linux/dm-dirty-log.h
b/include/linux/dm-dirty-log.h
index
5e8b11d
..
7084503
100644
(file)
--- a/
include/linux/dm-dirty-log.h
+++ b/
include/linux/dm-dirty-log.h
@@
-21,6
+21,7
@@
struct dm_dirty_log_type;
struct dm_dirty_log {
struct dm_dirty_log_type *type;
struct dm_dirty_log {
struct dm_dirty_log_type *type;
+ int (*flush_callback_fn)(struct dm_target *ti);
void *context;
};
void *context;
};
@@
-136,8
+137,9
@@
int dm_dirty_log_type_unregister(struct dm_dirty_log_type *type);
* type->constructor/destructor() directly.
*/
struct dm_dirty_log *dm_dirty_log_create(const char *type_name,
* type->constructor/destructor() directly.
*/
struct dm_dirty_log *dm_dirty_log_create(const char *type_name,
- struct dm_target *ti,
- unsigned argc, char **argv);
+ struct dm_target *ti,
+ int (*flush_callback_fn)(struct dm_target *ti),
+ unsigned argc, char **argv);
void dm_dirty_log_destroy(struct dm_dirty_log *log);
#endif /* __KERNEL__ */
void dm_dirty_log_destroy(struct dm_dirty_log *log);
#endif /* __KERNEL__ */