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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to