From 69064711c1eedaceff169c54cc5a1ba2d40ae4e0 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 6 Nov 2004 11:24:40 +0000 Subject: [PATCH] Annotate what bucket_size[] array does; staticize since it's used only in uma_core.c. --- sys/vm/uma_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 68500390c91b..bed3ab7caea5 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 };