Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2018 16:35:37 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337265 - head/sys/vm
Message-ID:  <201808031635.w73GZbmC045036@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Aug  3 16:35:37 2018
New Revision: 337265
URL: https://svnweb.freebsd.org/changeset/base/337265

Log:
  Add the required page accounting to kmem_bootstrap_free().
  
  Reviewed by:	alc, kib
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D16581

Modified:
  head/sys/vm/vm_kern.c

Modified: head/sys/vm/vm_kern.c
==============================================================================
--- head/sys/vm/vm_kern.c	Fri Aug  3 16:05:03 2018	(r337264)
+++ head/sys/vm/vm_kern.c	Fri Aug  3 16:35:37 2018	(r337265)
@@ -714,7 +714,11 @@ kmem_bootstrap_free(vm_offset_t start, vm_size_t size)
 		vmd = vm_pagequeue_domain(m);
 		vm_domain_free_lock(vmd);
 		vm_phys_free_pages(m, 0);
+		vmd->vmd_page_count++;
 		vm_domain_free_unlock(vmd);
+
+		vm_domain_freecnt_inc(vmd, 1);
+		vm_cnt.v_page_count++;
 	}
 	pmap_remove(kernel_pmap, start, end);
 	(void)vmem_add(kernel_arena, start, end - start, M_WAITOK);



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