summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2017-02-15 15:49:33 -0800
committerBrian Behlendorf <[email protected]>2017-02-15 15:49:33 -0800
commitc30e58c4628de46c36870cdedea9052711092a85 (patch)
tree5f98615d10e325a5d006c6c7e24a0e96cdd61223 /include/sys
parent3d3fe9f9bb4364718cb8c54d8c86bccc84ae3141 (diff)
zfs_arc_num_sublists_per_state should be common to all multilists
The global tunable zfs_arc_num_sublists_per_state is used by the ARC and the dbuf cache, and other users are planned. We should change this tunable to be common to all multilists. This tuning may be overridden on a per-multilist basis. Reviewed-by: Pavel Zakharov <[email protected]> Reviewed-by: Dan Kimmel <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matthew Ahrens <[email protected]> Closes #5764
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/arc.h2
-rw-r--r--include/sys/multilist.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/include/sys/arc.h b/include/sys/arc.h
index e1422d2e1..07a72302d 100644
--- a/include/sys/arc.h
+++ b/include/sys/arc.h
@@ -70,8 +70,6 @@ extern int zfs_arc_average_blocksize;
arc_done_func_t arc_bcopy_func;
arc_done_func_t arc_getbuf_func;
-extern int zfs_arc_num_sublists_per_state;
-
/* generic arc_prune_func_t wrapper for callbacks */
struct arc_prune {
arc_prune_func_t *p_pfunc;
diff --git a/include/sys/multilist.h b/include/sys/multilist.h
index 98d707dd7..9b19d016d 100644
--- a/include/sys/multilist.h
+++ b/include/sys/multilist.h
@@ -13,7 +13,7 @@
* CDDL HEADER END
*/
/*
- * Copyright (c) 2013, 2014 by Delphix. All rights reserved.
+ * Copyright (c) 2013, 2017 by Delphix. All rights reserved.
*/
#ifndef _SYS_MULTILIST_H
@@ -72,7 +72,7 @@ struct multilist {
};
void multilist_destroy(multilist_t *);
-void multilist_create(multilist_t *, size_t, size_t, unsigned int,
+void multilist_create(multilist_t *, size_t, size_t,
multilist_sublist_index_func_t *);
void multilist_insert(multilist_t *, void *);