aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/multilist.c
diff options
context:
space:
mode:
authorRichard Yao <richard.yao@alumni.stonybrook.edu>2022-09-27 23:42:41 +0000
committerGitHub <noreply@github.com>2022-09-27 23:42:41 +0000
commitfdc2d303710416868a05084e984fd8f231e948bd (patch)
tree058a29de2a9d3c998f008b626dd63951487f136e /module/zfs/multilist.c
parent7584fbe846b4127d5a16c5967a005e8f5c1e7b08 (diff)
downloadsrc-fdc2d303710416868a05084e984fd8f231e948bd.tar.gz
src-fdc2d303710416868a05084e984fd8f231e948bd.zip
Diffstat (limited to 'module/zfs/multilist.c')
-rw-r--r--module/zfs/multilist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/zfs/multilist.c b/module/zfs/multilist.c
index fdc5f07c47ea..b1cdf1c5c5f4 100644
--- a/module/zfs/multilist.c
+++ b/module/zfs/multilist.c
@@ -24,7 +24,7 @@
* This overrides the number of sublists in each multilist_t, which defaults
* to the number of CPUs in the system (see multilist_create()).
*/
-int zfs_multilist_num_sublists = 0;
+uint_t zfs_multilist_num_sublists = 0;
/*
* Given the object contained on the list, return a pointer to the
@@ -69,7 +69,7 @@ multilist_d2l(multilist_t *ml, void *obj)
*/
static void
multilist_create_impl(multilist_t *ml, size_t size, size_t offset,
- unsigned int num, multilist_sublist_index_func_t *index_func)
+ uint_t num, multilist_sublist_index_func_t *index_func)
{
ASSERT3U(size, >, 0);
ASSERT3U(size, >=, offset + sizeof (multilist_node_t));
@@ -104,7 +104,7 @@ void
multilist_create(multilist_t *ml, size_t size, size_t offset,
multilist_sublist_index_func_t *index_func)
{
- int num_sublists;
+ uint_t num_sublists;
if (zfs_multilist_num_sublists > 0) {
num_sublists = zfs_multilist_num_sublists;
@@ -425,5 +425,5 @@ multilist_link_active(multilist_node_t *link)
return (list_link_active(link));
}
-ZFS_MODULE_PARAM(zfs, zfs_, multilist_num_sublists, INT, ZMOD_RW,
+ZFS_MODULE_PARAM(zfs, zfs_, multilist_num_sublists, UINT, ZMOD_RW,
"Number of sublists used in each multilist");