Home
last modified time | relevance | path

Searched refs:b_dev_info (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/mm/
Dballoon_compaction.c14 static void balloon_page_enqueue_one(struct balloon_dev_info *b_dev_info, in balloon_page_enqueue_one() argument
24 balloon_page_insert(b_dev_info, page); in balloon_page_enqueue_one()
40 size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, in balloon_page_list_enqueue() argument
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()
53 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_list_enqueue()
76 size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, in balloon_page_list_dequeue() argument
83 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_list_dequeue()
84 list_for_each_entry_safe(page, tmp, &b_dev_info->pages, lru) { in balloon_page_list_dequeue()
108 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_list_dequeue()
[all …]
/linux-6.6.21/include/linux/
Dballoon_compaction.h63 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,
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dcmm.c88 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()
/linux-6.6.21/drivers/misc/
Dvmw_balloon.c350 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()
1018 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_enqueue_page_list()
1049 *n_pages = balloon_page_list_dequeue(&b->b_dev_info, pages, in vmballoon_dequeue_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()
1745 static int vmballoon_migratepage(struct balloon_dev_info *b_dev_info, in vmballoon_migratepage() argument
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()
[all …]