[RFC PATCH 3/4] dm-log: adjust dm-raid1.c to cope with standalone dirty region log module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove any dirty_log_{init,exit}() calls from dm-raid1.c to
allow it to share the standalone dm-log.ko with other targets.

Signed-off-by: Heinz Mauelshagen <hjm@xxxxxxxxxx>
---
 drivers/md/dm-raid1.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git 2.6.25-rc3.orig/drivers/md/dm-raid1.c 2.6.25-rc3/drivers/md/dm-raid1.c
index 5160587..37afe35 100644
--- 2.6.25-rc3.orig/drivers/md/dm-raid1.c
+++ 2.6.25-rc3/drivers/md/dm-raid1.c
@@ -1864,15 +1864,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;
 }
@@ -1884,8 +1878,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 */
-- 
1.5.4.1

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux