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:
dchagin 2015-04-06 18:45:41 +00:00
parent 1290072850
commit fd38dba27d

View File

@ -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;