Module Name:    src
Committed By:   haad
Date:           Mon Dec  6 09:12:23 UTC 2010

Modified Files:
        src/sys/dev/dm: device-mapper.c

Log Message:
I have forgot to fix dm_dev_counter here, too.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/dm/device-mapper.c
diff -u src/sys/dev/dm/device-mapper.c:1.25 src/sys/dev/dm/device-mapper.c:1.26
--- src/sys/dev/dm/device-mapper.c:1.25	Sat Oct 23 21:18:54 2010
+++ src/sys/dev/dm/device-mapper.c	Mon Dec  6 09:12:23 2010
@@ -1,4 +1,4 @@
-/*        $NetBSD: device-mapper.c,v 1.25 2010/10/23 21:18:54 haad Exp $ */
+/*        $NetBSD: device-mapper.c,v 1.26 2010/12/06 09:12:23 haad Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -110,7 +110,7 @@
 
 extern struct cfdriver dm_cd;
 
-extern uint64_t dm_dev_counter;
+extern uint32_t dm_dev_counter;
 
 /*
  * This array is used to translate cmd to function pointer.
@@ -277,7 +277,7 @@
 	(void)dm_dev_free(dmv);
 
 	/* Decrement device counter After removing device */
-	atomic_dec_64(&dm_dev_counter);
+	atomic_dec_32(&dm_dev_counter);
 
 	return 0;
 }

Reply via email to