diff mbox

[25,of,29] dm-snap-get-rid-of-__free_exceptions-fn.patch

Message ID 200903171406.n2HE6LNQ017526@hydrogen.msp.redhat.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Jonthan Brassow March 17, 2009, 2:06 p.m. UTC
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

Index: linux-2.6/drivers/md/dm-snap.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-snap.c
+++ linux-2.6/drivers/md/dm-snap.c
@@ -578,14 +578,6 @@  bad_snap:
 	return r;
 }
 
-static void __free_exceptions(struct dm_snapshot *s)
-{
-	dm_kcopyd_client_destroy(s->kcopyd_client);
-	s->kcopyd_client = NULL;
-
-	dm_exception_table_destroy(s->pending);
-}
-
 static void snapshot_dtr(struct dm_target *ti)
 {
 #ifdef CONFIG_DM_DEBUG
@@ -614,7 +606,10 @@  static void snapshot_dtr(struct dm_targe
 
 	mempool_destroy(s->tracked_chunk_pool);
 
-	__free_exceptions(s);
+	dm_kcopyd_client_destroy(s->kcopyd_client);
+	s->kcopyd_client = NULL;
+
+	dm_exception_table_destroy(s->pending);
 
 	mempool_destroy(s->pending_pool);