Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2018 18:00:59 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r342225 - releng/11.2/sys/vm
Message-ID:  <201812191800.wBJI0xms094730@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Dec 19 18:00:58 2018
New Revision: 342225
URL: https://svnweb.freebsd.org/changeset/base/342225

Log:
  MFS11 r341401: Update the free page count when blacklisting pages.
  
  PR:		231296
  Submitted by:	markj
  Approved by:	so
  Security:	FreeBSD-EN-18:17.vm
  Sponsored by:	The FreeBSD Foundation

Modified:
  releng/11.2/sys/vm/vm_page.c
Directory Properties:
  releng/11.2/   (props changed)

Modified: releng/11.2/sys/vm/vm_page.c
==============================================================================
--- releng/11.2/sys/vm/vm_page.c	Wed Dec 19 17:52:56 2018	(r342224)
+++ releng/11.2/sys/vm/vm_page.c	Wed Dec 19 18:00:58 2018	(r342225)
@@ -304,8 +304,10 @@ vm_page_blacklist_add(vm_paddr_t pa, bool verbose)
 
 	mtx_lock(&vm_page_queue_free_mtx);
 	ret = vm_phys_unfree_page(m);
+	if (ret != 0)
+		vm_phys_freecnt_adj(m, -1);
 	mtx_unlock(&vm_page_queue_free_mtx);
-	if (ret) {
+	if (ret != 0) {
 		TAILQ_INSERT_TAIL(&blacklist_head, m, listq);
 		if (verbose)
 			printf("Skipping page with pa 0x%jx\n", (uintmax_t)pa);



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