diff options
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r-- | drivers/md/dm-raid1.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 64489e714c95..c4ce01180b6f 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -1862,15 +1862,9 @@ static int __init dm_mirror_init(void) | |||
1862 | { | 1862 | { |
1863 | int r; | 1863 | int r; |
1864 | 1864 | ||
1865 | r = dm_dirty_log_init(); | ||
1866 | if (r) | ||
1867 | return r; | ||
1868 | |||
1869 | r = dm_register_target(&mirror_target); | 1865 | r = dm_register_target(&mirror_target); |
1870 | if (r < 0) { | 1866 | if (r < 0) |
1871 | DMERR("Failed to register mirror target"); | 1867 | DMERR("Failed to register mirror target"); |
1872 | dm_dirty_log_exit(); | ||
1873 | } | ||
1874 | 1868 | ||
1875 | return r; | 1869 | return r; |
1876 | } | 1870 | } |
@@ -1882,8 +1876,6 @@ static void __exit dm_mirror_exit(void) | |||
1882 | r = dm_unregister_target(&mirror_target); | 1876 | r = dm_unregister_target(&mirror_target); |
1883 | if (r < 0) | 1877 | if (r < 0) |
1884 | DMERR("unregister failed %d", r); | 1878 | DMERR("unregister failed %d", r); |
1885 | |||
1886 | dm_dirty_log_exit(); | ||
1887 | } | 1879 | } |
1888 | 1880 | ||
1889 | /* Module hooks */ | 1881 | /* Module hooks */ |