PAGE_TYPE_GUARD was unused and for the other two types a simple one bit flag

suffices. Therefore replaced vm_page::type by vm_page::is_dummy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35013 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-01-11 19:13:14 +00:00
parent 5084d83333
commit 451ca8b4b4
3 changed files with 12 additions and 18 deletions
+2 -7
View File
@@ -94,21 +94,16 @@ struct vm_page {
vint32 accessing_thread;
#endif
uint8 type : 2;
uint8 is_dummy : 1;
uint8 state : 3;
uint8 busy_writing : 1;
uint8 unused : 2;
// used in VMAnonymousCache::Merge()
uint8 unused : 3;
int8 usage_count;
uint16 wired_count;
};
enum {
PAGE_TYPE_PHYSICAL = 0,
PAGE_TYPE_DUMMY,
PAGE_TYPE_GUARD
};
enum {
PAGE_STATE_ACTIVE = 0,