Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 17:35:37 +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-12@freebsd.org
Subject:   svn commit: r341249 - stable/12/sys/vm
Message-ID:  <201811291735.wATHZbkE063944@repo.freebsd.org>

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



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