diff options
author | attilio <attilio@FreeBSD.org> | 2012-07-08 14:01:25 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-07-08 14:01:25 +0000 |
commit | ffa3f082fffd0919e1fab9e61c5d2f6e3b660159 (patch) | |
tree | fb66d07b443940b951526bc54891166470963486 /sys/vm/vm_object.h | |
parent | 3fc8e2687245790ea86e20d4e2ecb493bca60a00 (diff) | |
download | FreeBSD-src-ffa3f082fffd0919e1fab9e61c5d2f6e3b660159.zip FreeBSD-src-ffa3f082fffd0919e1fab9e61c5d2f6e3b660159.tar.gz |
- Split the cached and resident pages tree into 2 distinct ones.
This makes the RED/BLACK support go away and simplifies a lot vmradix
functions used here. This happens because with patricia trie support
the trie will be little enough that keeping 2 diffetnt will be
efficient too.
- Reduce differences with head, in places like backing scan where the
optimizazions used shuffled the code a little bit around.
Tested by: flo, Andrea Barberio
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r-- | sys/vm/vm_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 82d785f..3f36b35 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -101,7 +101,6 @@ struct vm_object { u_short pg_color; /* (c) color of first page in obj */ u_int paging_in_progress; /* Paging (in or out) so don't collapse or destroy */ int resident_page_count; /* number of resident pages */ - int cached_page_count; /* number of cached pages */ struct vm_object *backing_object; /* object that I'm a shadow of */ vm_ooffset_t backing_object_offset;/* Offset in backing object */ TAILQ_ENTRY(vm_object) pager_object_list; /* list of all objects of this pager type */ @@ -222,6 +221,7 @@ vm_object_t vm_object_allocate (objtype_t, vm_pindex_t); void _vm_object_allocate (objtype_t, vm_pindex_t, vm_object_t); boolean_t vm_object_coalesce(vm_object_t, vm_ooffset_t, vm_size_t, vm_size_t, boolean_t); +int vm_object_cache_is_empty (vm_object_t); void vm_object_collapse (vm_object_t); void vm_object_deallocate (vm_object_t); void vm_object_destroy (vm_object_t); |