diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-16 02:35:43 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-16 02:35:43 +0000 |
commit | ba06c0da86e12f6f9e528e62e742385e509a18a0 (patch) | |
tree | 62d59870caaf375825a131ec2c8eb5de5261b123 /sys/uvm/uvm_object.h | |
parent | 0ed25d4dd797c8e12cf494719c3cbfed272a6033 (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_object.h')
-rw-r--r-- | sys/uvm/uvm_object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/uvm/uvm_object.h b/sys/uvm/uvm_object.h index 3c7d9b4b053..0c453ef3d45 100644 --- a/sys/uvm/uvm_object.h +++ b/sys/uvm/uvm_object.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_object.h,v 1.21 2014/07/11 16:35:40 jsg Exp $ */ +/* $OpenBSD: uvm_object.h,v 1.22 2016/09/16 02:35:42 dlg Exp $ */ /* $NetBSD: uvm_object.h,v 1.11 2001/03/09 01:02:12 chs Exp $ */ /* @@ -41,7 +41,7 @@ struct uvm_object { struct uvm_pagerops *pgops; /* pager ops */ - RB_HEAD(uvm_objtree, vm_page) memt; /* pages in object */ + RBT_HEAD(uvm_objtree, vm_page) memt; /* pages in object */ int uo_npages; /* # of pages in memt */ int uo_refs; /* reference count */ }; @@ -76,8 +76,8 @@ extern struct uvm_pagerops uvm_vnodeops; extern struct uvm_pagerops uvm_deviceops; /* For object trees */ -int uvm_pagecmp(struct vm_page *, struct vm_page *); -RB_PROTOTYPE(uvm_objtree, vm_page, objt, uvm_pagecmp) +int uvm_pagecmp(const struct vm_page *, const struct vm_page *); +RBT_PROTOTYPE(uvm_objtree, vm_page, objt, uvm_pagecmp) #define UVM_OBJ_IS_VNODE(uobj) \ ((uobj)->pgops == &uvm_vnodeops) |