summaryrefslogtreecommitdiff
path: root/sys/vm/uma_int.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2018-02-07 18:32:51 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2018-02-07 18:32:51 +0000
commit5073a083280f08e9e2b86b064f43c30b7e504611 (patch)
tree0d9b2c4d50d03cbae61ae2ba2fc1eac358cd4688 /sys/vm/uma_int.h
parent348392153bfa497856508428838de95fb66b1534 (diff)
Notes
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r--sys/vm/uma_int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h
index bc51f00c29cbe..1e745fce36228 100644
--- a/sys/vm/uma_int.h
+++ b/sys/vm/uma_int.h
@@ -138,6 +138,11 @@
#define UMA_MAX_WASTE 10
/*
+ * Size of memory in a not offpage slab available for actual items.
+ */
+#define UMA_SLAB_SPACE (UMA_SLAB_SIZE - sizeof(struct uma_slab))
+
+/*
* I doubt there will be many cases where this is exceeded. This is the initial
* size of the hash table for uma_slabs that are managed off page. This hash
* does expand by powers of two. Currently it doesn't get smaller.