aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/arc.h
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2015-08-30 20:59:23 -0500
committerBrian Behlendorf <[email protected]>2015-09-02 09:33:02 -0700
commit69de34219af4a4d100cc5ed155a68ab03393fca4 (patch)
treef02a38e93b7280b54576d045c240ff46a72ad2b1 /include/sys/arc.h
parent6cde64351e236712a17d41c1578d5843a0f006e4 (diff)
Dbuf hash table should be sized as is the arc hash table
Commit 49ddb315066e372f31bda29a5c546a9eccc8b418 added the zfs_arc_average_blocksize parameter to allow control over the size of the arc hash table. The dbuf hash table's size should be determined similarly. Signed-off-by: Tim Chase <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3721
Diffstat (limited to 'include/sys/arc.h')
-rw-r--r--include/sys/arc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/arc.h b/include/sys/arc.h
index 0961d4b4d..f88fe0298 100644
--- a/include/sys/arc.h
+++ b/include/sys/arc.h
@@ -51,6 +51,9 @@ typedef void arc_done_func_t(zio_t *zio, arc_buf_t *buf, void *private);
typedef void arc_prune_func_t(int64_t bytes, void *private);
typedef int arc_evict_func_t(void *private);
+/* Shared module parameters */
+extern int zfs_arc_average_blocksize;
+
/* generic arc_done_func_t's which you can use */
arc_done_func_t arc_bcopy_func;
arc_done_func_t arc_getbuf_func;