summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_ioctl.c
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2010-12-06 08:54:49 +0000
committerhaad <haad@NetBSD.org>2010-12-06 08:54:49 +0000
commitae68395b8bfbbede740dae5de5235429bf3961c3 (patch)
tree256cc20f07261dd35b8277de42591be616b1f930 /sys/dev/dm/dm_ioctl.c
parentb4fc99737fc94e04bd2815f154696259f7982a32 (diff)
Add comment about dm_dev minor, and change it to 32bit value we realy not
going to use so much device minor numbers.
Diffstat (limited to 'sys/dev/dm/dm_ioctl.c')
-rw-r--r--sys/dev/dm/dm_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c
index 31ce8776b56..eb8f2838d56 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.22 2010/05/18 15:01:17 haad Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.23 2010/12/06 08:54:49 haad Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -93,7 +93,7 @@
#include "netbsd-dm.h"
#include "dm.h"
-static uint64_t sc_minor_num;
+static uint32_t sc_minor_num;
extern const struct dkdriver dmdkdriver;
uint64_t dm_dev_counter;
@@ -236,7 +236,7 @@ dm_dev_create_ioctl(prop_dictionary_t dm_dict)
if (name)
strlcpy(dmv->name, name, DM_NAME_LEN);
- dmv->minor = atomic_inc_64_nv(&sc_minor_num);
+ dmv->minor = (uint64_t)atomic_inc_32_nv(&sc_minor_num);
dmv->flags = 0; /* device flags are set when needed */
dmv->ref_cnt = 0;
dmv->event_nr = 0;