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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user