Lines Matching refs:balloon

5  * Common interface definitions for making balloon pages movable by compaction.
10 * page->private is used to reference the responsible balloon device.
16 * performing balloon page compaction. In order to sort out these racy scenarios
17 * and safely perform balloon's page compaction and migration we must, always,
20 * i. when updating a balloon's page ->mapping element, strictly do it under
27 * ii. isolation or dequeueing procedure must remove the page from balloon
31 * the aforementioned balloon page corner case, as well as to ensure the simple
32 * set of exposed rules are satisfied while we are dealing with balloon pages
49 * This struct is used to allow the common balloon compaction interface
50 * procedures to find the proper balloon device holding memory pages they'll
52 * balloon driver as a page book-keeper for its registered balloon devices.
71 static inline void balloon_devinfo_init(struct balloon_dev_info *balloon)
73 balloon->isolated_pages = 0;
74 spin_lock_init(&balloon->pages_lock);
75 INIT_LIST_HEAD(&balloon->pages);
76 balloon->migratepage = NULL;
83 * balloon_page_insert - insert a page into the balloon's page list and make
85 * @balloon : pointer to balloon device
86 * @page : page to be assigned as a 'balloon page'
88 * Caller must ensure the page is locked and the spin_lock protecting balloon
89 * pages list is held before inserting a page into the balloon device.
91 static inline void balloon_page_insert(struct balloon_dev_info *balloon,
96 set_page_private(page, (unsigned long)balloon);
97 list_add(&page->lru, &balloon->pages);
101 * balloon_page_delete - delete a page from balloon's page list and clear
103 * @page : page to be released from balloon's page list
105 * Caller must ensure the page is locked and the spin_lock protecting balloon
106 * pages list is held before deleting a page from the balloon device.
122 * balloon_page_device - get the b_dev_info descriptor for the balloon device
137 static inline void balloon_page_insert(struct balloon_dev_info *balloon,
141 list_add(&page->lru, &balloon->pages);