]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a logic error in the item size calculation for internal UMA zones.
authorMark Johnston <markj@FreeBSD.org>
Wed, 13 Sep 2017 15:44:54 +0000 (15:44 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 13 Sep 2017 15:44:54 +0000 (15:44 +0000)
commit2934eb8a223af73d75f05c863cb0d80d404174ce
treea781d2a1b006fe3b582e2cebfcb830b7d7e54374
parent19ebd288fb1251f77f1d0b5601c2bc613c87d65a
Fix a logic error in the item size calculation for internal UMA zones.

Kegs for internal zones always keep the slab header in the slab itself.
Therefore, when determining the allocation size, we need to take the
slab header size into account.

Reported and tested by: ae, rakuco
Reviewed by: avg
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D12342
sys/vm/uma_core.c
sys/vm/vm_page.c