Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2017 07:27:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324716 - head/sys/vm
Message-ID:  <201710180727.v9I7RhFr001968@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Oct 18 07:27:43 2017
New Revision: 324716
URL: https://svnweb.freebsd.org/changeset/base/324716

Log:
  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

Modified:
  head/sys/vm/swap_pager.c

Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c	Wed Oct 18 03:46:01 2017	(r324715)
+++ head/sys/vm/swap_pager.c	Wed Oct 18 07:27:43 2017	(r324716)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710180727.v9I7RhFr001968>