summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_pmemrange.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-09-16 02:35:43 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-09-16 02:35:43 +0000
commitba06c0da86e12f6f9e528e62e742385e509a18a0 (patch)
tree62d59870caaf375825a131ec2c8eb5de5261b123 /sys/uvm/uvm_pmemrange.h
parent0ed25d4dd797c8e12cf494719c3cbfed272a6033 (diff)
move the vm_page struct from being stored in RB macro trees to RBT functions
vm_page structs go into three trees, uvm_objtree, uvm_pmr_addr, and uvm_pmr_size. all these have been moved to RBT code. this should give us a decent chunk of code space back.
Diffstat (limited to 'sys/uvm/uvm_pmemrange.h')
-rw-r--r--sys/uvm/uvm_pmemrange.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/uvm/uvm_pmemrange.h b/sys/uvm/uvm_pmemrange.h
index 43f662b77d5..31a2068d12e 100644
--- a/sys/uvm/uvm_pmemrange.h
+++ b/sys/uvm/uvm_pmemrange.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pmemrange.h,v 1.12 2015/02/05 23:51:06 mpi Exp $ */
+/* $OpenBSD: uvm_pmemrange.h,v 1.13 2016/09/16 02:35:42 dlg Exp $ */
/*
* Copyright (c) 2009 Ariane van der Steldt <ariane@stack.nl>
@@ -23,8 +23,8 @@
#ifndef _UVM_UVM_PMEMRANGE_H_
#define _UVM_UVM_PMEMRANGE_H_
-RB_HEAD(uvm_pmr_addr, vm_page);
-RB_HEAD(uvm_pmr_size, vm_page);
+RBT_HEAD(uvm_pmr_addr, vm_page);
+RBT_HEAD(uvm_pmr_size, vm_page);
/*
* Page types available:
@@ -124,11 +124,11 @@ int uvm_pmr_isfree(struct vm_page *pg);
* Internal tree logic.
*/
-int uvm_pmr_addr_cmp(struct vm_page *, struct vm_page *);
-int uvm_pmr_size_cmp(struct vm_page *, struct vm_page *);
+int uvm_pmr_addr_cmp(const struct vm_page *, const struct vm_page *);
+int uvm_pmr_size_cmp(const struct vm_page *, const struct vm_page *);
-RB_PROTOTYPE(uvm_pmr_addr, vm_page, objt, uvm_pmr_addr_cmp);
-RB_PROTOTYPE(uvm_pmr_size, vm_page, objt, uvm_pmr_size_cmp);
+RBT_PROTOTYPE(uvm_pmr_addr, vm_page, objt, uvm_pmr_addr_cmp);
+RBT_PROTOTYPE(uvm_pmr_size, vm_page, objt, uvm_pmr_size_cmp);
RB_PROTOTYPE(uvm_pmemrange_addr, uvm_pmemrange, pmr_addr,
uvm_pmemrange_addr_cmp);