Commit 6f4229db authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 734bb68c
...@@ -927,15 +927,14 @@ static int __ram_reclaim(RAM *ram) ...@@ -927,15 +927,14 @@ static int __ram_reclaim(RAM *ram)
scanned++; scanned++;
/* can release ram only from loaded non-dirty pages /* can release ram only from loaded non-dirty pages
* NOTE PAGE_LOADING pages are not dropped - they just continue to load */ * NOTE PAGE_LOADING pages are not dropped - they just continue to load
// XXX PAGE_LOADED_FOR_WRITE vvv ok? * NOTE PAGE_LOADED_FOR_WRITE are not dropped - they are going to be dirtied in a moment */
if (page->state == PAGE_LOADED || page->state == PAGE_LOADED_FOR_WRITE) { if (page->state == PAGE_LOADED) {
page_drop_memory(page); page_drop_memory(page);
batch--; batch--;
} }
/* PAGE_EMPTY pages without mappers go away */ /* PAGE_EMPTY pages without mappers go away */
// XXX merge vvv with ^^^ : page_drop_memory + pagemap_del + page_del
if (page->state == PAGE_EMPTY) { if (page->state == PAGE_EMPTY) {
BUG_ON(page->refcnt != 0); // XXX what for then we have refcnt? -> vs discard BUG_ON(page->refcnt != 0); // XXX what for then we have refcnt? -> vs discard
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment