diff --git a/headers/private/kernel/vm/VMCache.h b/headers/private/kernel/vm/VMCache.h index 9101ff75b9..c58e3a61e7 100644 --- a/headers/private/kernel/vm/VMCache.h +++ b/headers/private/kernel/vm/VMCache.h @@ -220,7 +220,7 @@ private: void _RemoveConsumer(VMCache* consumer); bool _FreePageRange(VMCachePagesTree::Iterator it, - page_num_t* toPage, page_num_t* discarded); + page_num_t* toPage, page_num_t* freedPages); private: int32 fRefCount; diff --git a/src/system/kernel/vm/VMCache.cpp b/src/system/kernel/vm/VMCache.cpp index da02f6f080..18642aa518 100644 --- a/src/system/kernel/vm/VMCache.cpp +++ b/src/system/kernel/vm/VMCache.cpp @@ -1106,7 +1106,7 @@ VMCache::SetMinimalCommitment(off_t commitment, int priority) bool VMCache::_FreePageRange(VMCachePagesTree::Iterator it, - page_num_t* toPage = NULL, page_num_t* discarded = NULL) + page_num_t* toPage = NULL, page_num_t* freedPages = NULL) { for (vm_page* page = it.Next(); page != NULL && (toPage == NULL || page->cache_offset < *toPage); @@ -1118,8 +1118,8 @@ VMCache::_FreePageRange(VMCachePagesTree::Iterator it, // as we might cause a deadlock this way page->busy_writing = false; // this will notify the writer to free the page - if (discarded != NULL) - (*discarded)++; + if (freedPages != NULL) + (*freedPages)++; continue; } @@ -1140,8 +1140,8 @@ VMCache::_FreePageRange(VMCachePagesTree::Iterator it, // removing the current node is safe. vm_page_free(this, page); - if (discarded != NULL) - (*discarded)++; + if (freedPages != NULL) + (*freedPages)++; } return false;