Searched refs:b_dev_info (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/mm/ |
H A D | balloon_compaction.c | 24 balloon_page_insert(b_dev_info, page); in balloon_page_enqueue_one() 47 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_list_enqueue() 50 balloon_page_enqueue_one(b_dev_info, page); in balloon_page_list_enqueue() 83 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_list_dequeue() 151 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_enqueue() 152 balloon_page_enqueue_one(b_dev_info, page); in balloon_page_enqueue() 194 if (unlikely(list_empty(&b_dev_info->pages) && in balloon_page_dequeue() 195 !b_dev_info->isolated_pages)) in balloon_page_dequeue() 214 b_dev_info->isolated_pages++; in balloon_page_isolate() 226 list_add(&page->lru, &b_dev_info->pages); in balloon_page_putback() [all …]
|
/openbmc/linux/include/linux/ |
H A D | balloon_compaction.h | 63 extern void balloon_page_enqueue(struct balloon_dev_info *b_dev_info, 65 extern struct page *balloon_page_dequeue(struct balloon_dev_info *b_dev_info); 66 extern size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, 68 extern size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info,
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | cmm.c | 88 static struct balloon_dev_info b_dev_info; variable 166 balloon_page_enqueue(&b_dev_info, page); in cmm_alloc_pages() 189 page = balloon_page_dequeue(&b_dev_info); in cmm_free_pages() 500 static int cmm_migratepage(struct balloon_dev_info *b_dev_info, in cmm_migratepage() argument 533 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in cmm_migratepage() 534 balloon_page_insert(b_dev_info, newpage); in cmm_migratepage() 536 b_dev_info->isolated_pages--; in cmm_migratepage() 537 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in cmm_migratepage() 553 balloon_devinfo_init(&b_dev_info); in cmm_balloon_compaction_init() 554 b_dev_info.migratepage = cmm_migratepage; in cmm_balloon_compaction_init()
|
/openbmc/linux/drivers/misc/ |
H A D | vmw_balloon.c | 350 struct balloon_dev_info b_dev_info; member 1003 balloon_page_list_enqueue(&b->b_dev_info, pages); in vmballoon_enqueue_page_list() 1009 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_enqueue_page_list() 1055 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_dequeue_page_list() 1066 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_dequeue_page_list() 1753 b = container_of(b_dev_info, struct vmballoon, b_dev_info); in vmballoon_migratepage() 1825 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_migratepage() 1833 balloon_page_insert(&b->b_dev_info, newpage); in vmballoon_migratepage() 1841 b->b_dev_info.isolated_pages--; in vmballoon_migratepage() 1862 b->b_dev_info.migratepage = vmballoon_migratepage; in vmballoon_compaction_init() [all …]
|