svn commit: r341249 - stable/12/sys/vm

Mark Johnston markj at FreeBSD.org
Thu Nov 29 17:35:38 UTC 2018


Author: markj
Date: Thu Nov 29 17:35:37 2018
New Revision: 341249
URL: https://svnweb.freebsd.org/changeset/base/341249

Log:
  MFC r341247:
  Update the free page count when blacklisting pages.
  
  PR:		231296
  Approved by:	re (gjb, insta-MFC)

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

Modified: stable/12/sys/vm/vm_page.c
==============================================================================
--- stable/12/sys/vm/vm_page.c	Thu Nov 29 16:49:56 2018	(r341248)
+++ stable/12/sys/vm/vm_page.c	Thu Nov 29 17:35:37 2018	(r341249)
@@ -355,7 +355,8 @@ vm_page_blacklist_add(vm_paddr_t pa, bool verbose)
 	vm_domain_free_lock(vmd);
 	ret = vm_phys_unfree_page(m);
 	vm_domain_free_unlock(vmd);
-	if (ret) {
+	if (ret != 0) {
+		vm_domain_freecnt_inc(vmd, -1);
 		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-all mailing list