]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
uma: fix pages <-> items conversions at several places
authorAndriy Gapon <avg@FreeBSD.org>
Sat, 11 Mar 2017 16:43:38 +0000 (16:43 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Sat, 11 Mar 2017 16:43:38 +0000 (16:43 +0000)
commit57223e99941b13f472212c595600c1a3e367682e
tree93cade21f2d366bd8fff64442533d7e2307ed1e8
parenta55ebb7cd5f548f36f52789de47fb5660c73b39e
uma: fix pages <-> items conversions at several places

Those places were not taking into account uk_ppera.
At present one allocation is always used by one slab, so uk_ppera must
be used to convert between pages and slabs.
uk_ipers is used to convert between slabs and items.

MFC after: 1 month (if ever)
sys/vm/uma_core.c