Do not report reduction of swap zone if it was not.

After r324600 we see the actual reservation.

Reported by:	jkim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-10-18 07:27:43 +00:00
parent ccf2e8123b
commit 1fffcd755d

View File

@ -549,7 +549,7 @@ swap_pager_swap_init(void)
*/
n = uma_zone_get_max(swblk_zone);
if (n2 != n)
if (n < n2)
printf("Swap blk zone entries reduced from %lu to %lu.\n",
n2, n);
swap_maxpages = n * SWAP_META_PAGES;