Annotate what bucket_size[] array does; staticize since it's used only
in uma_core.c.
This commit is contained in:
parent
111c3747b7
commit
f9d27e7524
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user