Made VMCache::Resize() virtual and let VMAnonymousCache override it to free

swap space when the cache shrinks. Currently the implementation stil leaks
swap space of busy pages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36373 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-04-20 14:04:18 +00:00
parent ba16e4ec61
commit efeca209a1
4 changed files with 62 additions and 3 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ public:
status_t WriteModified();
status_t SetMinimalCommitment(off_t commitment,
int priority);
status_t Resize(off_t newSize, int priority);
virtual status_t Resize(off_t newSize, int priority);
status_t FlushAndRemoveAllPages();