Properly calculate "UMA Zones" per cpu cache size. Avoid allocating
an extra struct uma_cache since the struct uma_zone already has one. PR: 199169 Submitted by: luke.tw gmail com MFC after: 1 week
This commit is contained in:
parent
1290072850
commit
fd38dba27d
@ -1822,7 +1822,7 @@ uma_startup(void *bootmem, int boot_pages)
|
||||
#endif
|
||||
args.name = "UMA Zones";
|
||||
args.size = sizeof(struct uma_zone) +
|
||||
(sizeof(struct uma_cache) * (mp_maxid + 1));
|
||||
(sizeof(struct uma_cache) * (mp_maxid));
|
||||
args.ctor = zone_ctor;
|
||||
args.dtor = zone_dtor;
|
||||
args.uminit = zero_init;
|
||||
|
Loading…
Reference in New Issue
Block a user