svn commit: r341401 - stable/11/sys/vm

Mark Johnston markj at FreeBSD.org
Sun Dec 2 18:08:28 UTC 2018


Author: markj
Date: Sun Dec  2 18:08:27 2018
New Revision: 341401
URL: https://svnweb.freebsd.org/changeset/base/341401

Log:
  MFC r341247:
  Update the free page count when blacklisting pages.
  
  PR:	231296

Modified:
  stable/11/sys/vm/vm_page.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_page.c
==============================================================================
--- stable/11/sys/vm/vm_page.c	Sun Dec  2 13:29:13 2018	(r341400)
+++ stable/11/sys/vm/vm_page.c	Sun Dec  2 18:08:27 2018	(r341401)
@@ -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);


More information about the svn-src-stable mailing list