diff options
author | alc <alc@FreeBSD.org> | 1999-10-27 17:47:24 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-10-27 17:47:24 +0000 |
commit | 2c86d1cce1222f4c34a02bfe36cd6d558c6c8cef (patch) | |
tree | 7e0c18298f442ea1f2c15a44d8741ffb92dc6b49 | |
parent | f7ea0f8cc3fa9fbbf4e13761b0c0f4f03092f4e6 (diff) | |
download | FreeBSD-src-2c86d1cce1222f4c34a02bfe36cd6d558c6c8cef.zip FreeBSD-src-2c86d1cce1222f4c34a02bfe36cd6d558c6c8cef.tar.gz |
Shrink "struct vm_object" by not spending a full 32 bits
on "objtype_t".
-rw-r--r-- | sys/vm/vm_object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 385ef70..315cedb 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -75,7 +75,7 @@ #include <machine/atomic.h> enum obj_type { OBJT_DEFAULT, OBJT_SWAP, OBJT_VNODE, OBJT_DEVICE, OBJT_DEAD }; -typedef enum obj_type objtype_t; +typedef u_char objtype_t; /* * Types defined: @@ -90,11 +90,11 @@ struct vm_object { TAILQ_ENTRY(vm_object) shadow_list; /* chain of shadow objects */ TAILQ_HEAD(, vm_page) memq; /* list of resident pages */ int generation; /* generation ID */ - objtype_t type; /* type of pager */ vm_size_t size; /* Object size */ int ref_count; /* How many refs?? */ int shadow_count; /* how many objects that this is a shadow for */ int hash_rand; /* vm hash table randomizer */ + objtype_t type; /* type of pager */ u_short flags; /* see below */ u_short pg_color; /* color of first page in obj */ u_short paging_in_progress; /* Paging (in or out) so don't collapse or destroy */ |