summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <hjm@redhat.com>2008-04-24 21:43:09 +0100
committerAlasdair G Kergon <agk@redhat.com>2008-04-25 13:26:39 +0100
commit769aef30f0f505c44bbe9fcd2c911a052a386139 (patch)
tree8c9d8da4d1f173935d54398b1daf52df316fc3ca /drivers/md/dm-raid1.c
parentb7fd54a70f99061721e604d72d940541e5b2b168 (diff)
downloadop-kernel-dev-769aef30f0f505c44bbe9fcd2c911a052a386139.zip
op-kernel-dev-769aef30f0f505c44bbe9fcd2c911a052a386139.tar.gz
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-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 64489e7..c4ce011 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1862,15 +1862,9 @@ static int __init dm_mirror_init(void)
{
int r;
- r = dm_dirty_log_init();
- if (r)
- return r;
-
r = dm_register_target(&mirror_target);
- if (r < 0) {
+ if (r < 0)
DMERR("Failed to register mirror target");
- dm_dirty_log_exit();
- }
return r;
}
@@ -1882,8 +1876,6 @@ static void __exit dm_mirror_exit(void)
r = dm_unregister_target(&mirror_target);
if (r < 0)
DMERR("unregister failed %d", r);
-
- dm_dirty_log_exit();
}
/* Module hooks */
OpenPOWER on IntegriCloud