Searched refs:buddy (Results 1 – 4 of 4) sorted by relevance
/mm/ |
D | z3fold.c | 78 enum buddy { enum 114 struct list_head buddy; member 327 INIT_LIST_HEAD(&zhdr->buddy); in init_z3fold_page() 363 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx() 374 enum buddy bud) in __encode_handle() 396 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle() 425 static enum buddy handle_to_buddy(unsigned long handle) in handle_to_buddy() 446 WARN_ON(!list_empty(&zhdr->buddy)); in __release_z3fold_page() 456 list_add(&zhdr->buddy, &pool->stale); in __release_z3fold_page() 483 list_del_init(&zhdr->buddy); in release_z3fold_page_locked_list() [all …]
|
D | zbud.c | 116 struct list_head buddy; member 224 enum buddy { enum 244 INIT_LIST_HEAD(&zhdr->buddy); in init_zbud_page() 260 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() 359 enum buddy bud; in zbud_alloc() 374 struct zbud_header, buddy); in zbud_alloc() 375 list_del(&zhdr->buddy); in zbud_alloc() 403 list_add(&zhdr->buddy, &pool->unbuddied[freechunks]); in zbud_alloc() 406 list_add(&zhdr->buddy, &pool->buddied); in zbud_alloc() 451 list_del(&zhdr->buddy); in zbud_free() [all …]
|
D | page_isolation.c | 97 struct page *buddy; in unset_migratetype_isolate() local 117 buddy = page + (buddy_pfn - pfn); in unset_migratetype_isolate() 120 !is_migrate_isolate_page(buddy)) { in unset_migratetype_isolate()
|
D | page_alloc.c | 806 static inline int page_is_buddy(struct page *page, struct page *buddy, in page_is_buddy() argument 809 if (page_is_guard(buddy) && page_order(buddy) == order) { in page_is_buddy() 810 if (page_zone_id(page) != page_zone_id(buddy)) in page_is_buddy() 813 VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy); in page_is_buddy() 818 if (PageBuddy(buddy) && page_order(buddy) == order) { in page_is_buddy() 824 if (page_zone_id(page) != page_zone_id(buddy)) in page_is_buddy() 827 VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy); in page_is_buddy() 916 struct page *buddy; in __free_one_page() local 940 buddy = page + (buddy_pfn - pfn); in __free_one_page() 944 if (!page_is_buddy(page, buddy, order)) in __free_one_page() [all …]
|