diff options
author | attilio <attilio@FreeBSD.org> | 2012-06-09 12:25:30 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-06-09 12:25:30 +0000 |
commit | 3fc8e2687245790ea86e20d4e2ecb493bca60a00 (patch) | |
tree | 91a16e5e4735c75b4e7aa12c531ba68a15e441d5 /sys/vm/vm_object.h | |
parent | 807db03f96dc5119f55d8a1b31bcec520261745d (diff) | |
download | FreeBSD-src-3fc8e2687245790ea86e20d4e2ecb493bca60a00.zip FreeBSD-src-3fc8e2687245790ea86e20d4e2ecb493bca60a00.tar.gz |
Introduce a new tree for dealing with cached pages separately and
remove the RED/BLACK concept.
This is based on the assumption that path-compressed tries will be
small and fast enough that a separate trie for cached pages will make
sense and will leave the trie code simple enough (along with removing
a lot of differences in the userend code).
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r-- | sys/vm/vm_object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 6aa9f5f..82d785f 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -90,6 +90,7 @@ struct vm_object { LIST_ENTRY(vm_object) shadow_list; /* chain of shadow objects */ TAILQ_HEAD(, vm_page) memq; /* list of resident pages */ struct vm_radix rtree; /* root of the resident page radix index tree */ + struct vm_radix cache; /* root of the cache page radix index tree */ vm_pindex_t size; /* Object size */ int generation; /* generation ID */ int ref_count; /* How many refs?? */ |