Skip to content

Commit dde3285

Browse files
davidhildenbrandbostrovs
authored andcommitted
xen/balloon: Drop __balloon_append()
Let's simply use balloon_append() directly. Cc: Boris Ostrovsky <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Stefano Stabellini <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
1 parent c5ad81e commit dde3285

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

drivers/xen/balloon.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static DECLARE_DELAYED_WORK(balloon_worker, balloon_process);
156156
(GFP_HIGHUSER | __GFP_NOWARN | __GFP_NORETRY | __GFP_NOMEMALLOC)
157157

158158
/* balloon_append: add the given page to the balloon. */
159-
static void __balloon_append(struct page *page)
159+
static void balloon_append(struct page *page)
160160
{
161161
/* Lowmem is re-populated first, so highmem pages go at list tail. */
162162
if (PageHighMem(page)) {
@@ -169,11 +169,6 @@ static void __balloon_append(struct page *page)
169169
wake_up(&balloon_wq);
170170
}
171171

172-
static void balloon_append(struct page *page)
173-
{
174-
__balloon_append(page);
175-
}
176-
177172
/* balloon_retrieve: rescue a page from the balloon, if it is not empty. */
178173
static struct page *balloon_retrieve(bool require_lowmem)
179174
{
@@ -378,7 +373,7 @@ static void xen_online_page(struct page *page, unsigned int order)
378373
p = pfn_to_page(start_pfn + i);
379374
__online_page_set_limits(p);
380375
__SetPageOffline(p);
381-
__balloon_append(p);
376+
balloon_append(p);
382377
}
383378
mutex_unlock(&balloon_mutex);
384379
}
@@ -689,7 +684,7 @@ static void __init balloon_add_region(unsigned long start_pfn,
689684
include the boot-time balloon extension, so
690685
don't subtract from it. */
691686
__SetPageOffline(page);
692-
__balloon_append(page);
687+
balloon_append(page);
693688
}
694689

695690
balloon_stats.total_pages += extra_pfn_end - start_pfn;

0 commit comments

Comments
 (0)