summaryrefslogtreecommitdiff
path: root/vm/vm_object.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_object.h')
-rw-r--r--vm/vm_object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/vm_object.h b/vm/vm_object.h
index 01ce4ad..5805a58 100644
--- a/vm/vm_object.h
+++ b/vm/vm_object.h
@@ -46,6 +46,7 @@
#include <kern/assert.h>
#include <kern/debug.h>
#include <kern/macros.h>
+#include <kern/rdxtree.h>
#include <vm/pmap.h>
#include <ipc/ipc_types.h>
@@ -62,7 +63,8 @@ typedef struct ipc_port * pager_request_t;
*/
struct vm_object {
- queue_chain_t memq; /* Resident memory */
+ /* Resident memory indexed by offset. Protected by LOCK. */
+ struct rdxtree memt;
struct lock Lock; /* Synchronization */
#if VM_OBJECT_DEBUG
thread_t LockHolder; /* Thread holding Lock */