Moved duplicate code from the VMTranslationMap subclasses' UnmapPage() and

ClearAccessedAndModified() implementations into helper methods PageUnmapped()
and UnaccessedPageUnmapped() in the base class.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37187 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-06-21 13:32:33 +00:00
parent e77e4cff3e
commit 0d5ab7a14d
4 changed files with 132 additions and 128 deletions
@@ -69,6 +69,13 @@ struct VMTranslationMap {
virtual void Flush() = 0;
protected:
void PageUnmapped(VMArea* area,
page_num_t pageNumber, bool accessed,
bool modified, bool updatePageQueue);
void UnaccessedPageUnmapped(VMArea* area,
page_num_t pageNumber);
protected:
recursive_lock fLock;
int32 fMapCount;