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