HomeFreeBSD

Fix yet another edge case in uma_startup_count(). If zone size fits into

Description

Fix yet another edge case in uma_startup_count(). If zone size fits into
several pages, but leaves no space for struct uma_slab at the end we
miscalculate number of pages by one. Totally mimic keg_large_init() math
here to cover that problem.

Reported by: gallatin

Details

Provenance
glebiusAuthored on
Parents
rS341162: For not offpage zones the slab is placed at the end of page. Keg's uk_pgoff
Branches
Unknown
Tags
Unknown