From 41a9b4c3bfc14ea93403fc877e552accfa8a5c06 Mon Sep 17 00:00:00 2001 From: haad Date: Mon, 6 Dec 2010 09:03:40 +0000 Subject: We don't need 64 bit variable for dm_device coutner, too. --- sys/dev/dm/dm_ioctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/dm/dm_ioctl.c') diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c index eb8f2838d56..450ceba064a 100644 --- a/sys/dev/dm/dm_ioctl.c +++ b/sys/dev/dm/dm_ioctl.c @@ -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_dev_create_ioctl(prop_dictionary_t dm_dict) 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; } -- cgit