Commit 29268616 authored by Kirill Smelkov's avatar Kirill Smelkov

bigfile/virtmem: page_del: Assert that Page is not on fileh->dirty list

Freed Page structs must be in PAGE_EMPTY state.
parent 765cb440
......@@ -901,6 +901,7 @@ static void page_drop_memory(Page *page)
static void page_del(Page *page) {
BUG_ON(page->refcnt != 0);
BUG_ON(page->state != PAGE_EMPTY);
BUG_ON(!list_empty(&page->in_dirty));
list_del(&page->lru);
bzero(page, sizeof(*page)); /* just in case */
......
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