diff options
| author | haad <haad@NetBSD.org> | 2010-12-06 09:03:40 +0000 |
|---|---|---|
| committer | haad <haad@NetBSD.org> | 2010-12-06 09:03:40 +0000 |
| commit | 41a9b4c3bfc14ea93403fc877e552accfa8a5c06 (patch) | |
| tree | 8d2f6d84daad95c967bb5b03e7164b48cb7e7984 /sys/dev/dm/dm_ioctl.c | |
| parent | ae68395b8bfbbede740dae5de5235429bf3961c3 (diff) | |
We don't need 64 bit variable for dm_device coutner, too.
Diffstat (limited to 'sys/dev/dm/dm_ioctl.c')
| -rw-r--r-- | sys/dev/dm/dm_ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
