* Made vm_page::state private and added accessor methods.

* Added kernel tracing for page state transitions.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35538 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-02-20 15:57:44 +00:00
parent 98d2fc4b23
commit bd7645a12a
7 changed files with 172 additions and 73 deletions
+6
View File
@@ -105,7 +105,9 @@ public:
vint32 accessing_thread;
#endif
private:
uint8 state : 3;
public:
bool busy : 1;
bool busy_writing : 1;
// used in VMAnonymousCache::Merge()
@@ -124,6 +126,10 @@ public:
bool IsMapped() const
{ return wired_count > 0 || !mappings.IsEmpty(); }
uint8 State() const { return state; }
void InitState(uint8 newState);
void SetState(uint8 newState);
};