Module Name: src
Committed By: haad
Date: Mon Dec 6 09:03:41 UTC 2010
Modified Files:
src/sys/dev/dm: dm_ioctl.c
Log Message:
We don't need 64 bit variable for dm_device coutner, too.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/dm/dm_ioctl.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/dm_ioctl.c
diff -u src/sys/dev/dm/dm_ioctl.c:1.23 src/sys/dev/dm/dm_ioctl.c:1.24
--- src/sys/dev/dm/dm_ioctl.c:1.23 Mon Dec 6 08:54:49 2010
+++ src/sys/dev/dm/dm_ioctl.c Mon Dec 6 09:03:40 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.23 2010/12/06 08:54:49 haad Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.24 2010/12/06 09:03:40 haad Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
static uint32_t sc_minor_num;
extern const struct dkdriver dmdkdriver;
-uint64_t dm_dev_counter;
+uint32_t dm_dev_counter;
/* Generic cf_data for device-mapper driver */
static struct cfdata dm_cfdata = {
@@ -266,7 +266,7 @@
DM_REMOVE_FLAG(flags, DM_INACTIVE_PRESENT_FLAG);
/* Increment device counter After creating device */
- atomic_inc_64(&dm_dev_counter);
+ atomic_inc_32(&dm_dev_counter);
return r;
}