diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-23 16:08:54 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-23 16:08:54 +0200 |
commit | c4f9ed0c9ebcb3bab58e0a7f2f5d7d5aef037851 (patch) | |
tree | 227e858d6eba17e184245343c2bb9b9d0376b6a5 | |
parent | 3d9c4ecbd1d3616a4d1a86423ff84e31756cb4d0 (diff) |
vm/page: please have a lookpmm-2015-09-25
-rw-r--r-- | vm/vm_page.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c index b95ca15..655bd77 100644 --- a/vm/vm_page.c +++ b/vm/vm_page.c @@ -278,10 +278,12 @@ vm_page_seg_alloc_from_buddy(struct vm_page_seg *seg, unsigned int order) page = list_first_entry(&free_list->blocks, struct vm_page, node); vm_page_free_list_remove(free_list, page); page->order = VM_PAGE_ORDER_UNLISTED; + page->type = VM_PAGE_UNUSED; while (i > order) { i--; buddy = &page[1 << i]; + buddy->order = VM_PAGE_ORDER_UNLISTED; vm_page_free_list_insert(&seg->free_lists[i], buddy); buddy->order = i; } |