Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dm We don't need 64 bit variable for dm_device coutn...



details:   https://anonhg.NetBSD.org/src/rev/74db56c2b1a8
branches:  trunk
changeset: 759335:74db56c2b1a8
user:      haad <haad%NetBSD.org@localhost>
date:      Mon Dec 06 09:03:40 2010 +0000

description:
We don't need 64 bit variable for dm_device coutner, too.

diffstat:

 sys/dev/dm/dm_ioctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r de8728d72358 -r 74db56c2b1a8 sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c     Mon Dec 06 08:54:49 2010 +0000
+++ b/sys/dev/dm/dm_ioctl.c     Mon Dec 06 09:03:40 2010 +0000
@@ -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;
 }



Home | Main Index | Thread Index | Old Index