Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2018 18:08:27 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r341401 - stable/11/sys/vm
Message-ID:  <201812021808.wB2I8RGv077374@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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