summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-11-06 11:24:40 +0000
committerrwatson <rwatson@FreeBSD.org>2004-11-06 11:24:40 +0000
commit69064711c1eedaceff169c54cc5a1ba2d40ae4e0 (patch)
treeffda3d1545b3895d7aa85c41fc062e618aac9afc /sys/vm
parentf2be7415a15e003cfefa519d65ab75182ae4e49a (diff)
downloadFreeBSD-src-69064711c1eedaceff169c54cc5a1ba2d40ae4e0.zip
FreeBSD-src-69064711c1eedaceff169c54cc5a1ba2d40ae4e0.tar.gz
Annotate what bucket_size[] array does; staticize since it's used only
in uma_core.c.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 6850039..bed3ab7 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -185,7 +185,11 @@ struct uma_bucket_zone bucket_zones[] = {
#define BUCKET_SHIFT 4
#define BUCKET_ZONES ((BUCKET_MAX >> BUCKET_SHIFT) + 1)
-uint8_t bucket_size[BUCKET_ZONES];
+/*
+ * bucket_size[] maps requested bucket sizes to zones that allocate a bucket
+ * of approximately the right size.
+ */
+static uint8_t bucket_size[BUCKET_ZONES];
enum zfreeskip { SKIP_NONE, SKIP_DTOR, SKIP_FINI };
OpenPOWER on IntegriCloud