summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_pmemrange.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2015-08-21 16:04:35 +0000
committervisa <visa@openbsd.org>2015-08-21 16:04:35 +0000
commit6f909936bb4c7686afdb3e0e32c083f29a5fb9c6 (patch)
treeb66b8c02597ea82c3e206180c88a252e9861f663 /sys/uvm/uvm_pmemrange.c
parentSwitch iked to C99-style fixed-width integer types. (diff)
downloadwireguard-openbsd-6f909936bb4c7686afdb3e0e32c083f29a5fb9c6.tar.xz
wireguard-openbsd-6f909936bb4c7686afdb3e0e32c083f29a5fb9c6.zip
Remove the unused loan_count field and the related uvm logic. Most of
the page loaning code is already in the Attic. ok kettenis@, beck@
Diffstat (limited to 'sys/uvm/uvm_pmemrange.c')
-rw-r--r--sys/uvm/uvm_pmemrange.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/uvm/uvm_pmemrange.c b/sys/uvm/uvm_pmemrange.c
index cee67c0a721..f4a86c9936d 100644
--- a/sys/uvm/uvm_pmemrange.c
+++ b/sys/uvm/uvm_pmemrange.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pmemrange.c,v 1.47 2015/08/19 12:24:30 visa Exp $ */
+/* $OpenBSD: uvm_pmemrange.c,v 1.48 2015/08/21 16:04:35 visa Exp $ */
/*
* Copyright (c) 2009, 2010 Ariane van der Steldt <ariane@stack.nl>
@@ -1244,12 +1244,10 @@ uvm_pmr_assertvalid(struct uvm_pmemrange *pmr)
/*
* Free pages are:
* - not wired
- * - not loaned
* - have no vm_anon
* - have no uvm_object
*/
KASSERT(i[lcv].wire_count == 0);
- KASSERT(i[lcv].loan_count == 0);
KASSERT(i[lcv].uanon == (void*)0xdeadbeef ||
i[lcv].uanon == NULL);
KASSERT(i[lcv].uobject == (void*)0xdeadbeef ||