diff options
author | Heinz Mauelshagen <hjm@redhat.com> | 2008-04-24 16:43:09 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-04-25 08:26:39 -0400 |
commit | 769aef30f0f505c44bbe9fcd2c911a052a386139 (patch) | |
tree | 8c9d8da4d1f173935d54398b1daf52df316fc3ca /drivers/md/dm-log.c | |
parent | b7fd54a70f99061721e604d72d940541e5b2b168 (diff) |
dm log: move dirty region log code into separate module
Move the dirty region log code into a separate module so
other targets can share the code.
Signed-off-by: Heinz Mauelshagen <hjm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-log.c')
-rw-r--r-- | drivers/md/dm-log.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index 34c25b0073ec..f6b20def2ac8 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c | |||
@@ -777,7 +777,7 @@ int __init dm_dirty_log_init(void) | |||
777 | return r; | 777 | return r; |
778 | } | 778 | } |
779 | 779 | ||
780 | void dm_dirty_log_exit(void) | 780 | void __exit dm_dirty_log_exit(void) |
781 | { | 781 | { |
782 | dm_unregister_dirty_log_type(&_disk_type); | 782 | dm_unregister_dirty_log_type(&_disk_type); |
783 | dm_unregister_dirty_log_type(&_core_type); | 783 | dm_unregister_dirty_log_type(&_core_type); |
@@ -787,3 +787,10 @@ EXPORT_SYMBOL(dm_register_dirty_log_type); | |||
787 | EXPORT_SYMBOL(dm_unregister_dirty_log_type); | 787 | EXPORT_SYMBOL(dm_unregister_dirty_log_type); |
788 | EXPORT_SYMBOL(dm_create_dirty_log); | 788 | EXPORT_SYMBOL(dm_create_dirty_log); |
789 | EXPORT_SYMBOL(dm_destroy_dirty_log); | 789 | EXPORT_SYMBOL(dm_destroy_dirty_log); |
790 | |||
791 | module_init(dm_dirty_log_init); | ||
792 | module_exit(dm_dirty_log_exit); | ||
793 | |||
794 | MODULE_DESCRIPTION(DM_NAME " dirty region log"); | ||
795 | MODULE_AUTHOR("Joe Thornber, Heinz Mauelshagen <dm-devel@redhat.com>"); | ||
796 | MODULE_LICENSE("GPL"); | ||