Skip to content

Commit 02fa5d7

Browse files
anadavmstsirkin
authored andcommitted
mm/balloon_compaction: suppress allocation warnings
There is no reason to print warnings when balloon page allocation fails, as they are expected and can be handled gracefully. Since VMware balloon now uses balloon-compaction infrastructure, and suppressed these warnings before, it is also beneficial to suppress these warnings to keep the same behavior that the balloon had before. Cc: Jason Wang <[email protected]> Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: David Hildenbrand <[email protected]>
1 parent 3d2c7d3 commit 02fa5d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm/balloon_compaction.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ EXPORT_SYMBOL_GPL(balloon_page_list_dequeue);
124124
struct page *balloon_page_alloc(void)
125125
{
126126
struct page *page = alloc_page(balloon_mapping_gfp_mask() |
127-
__GFP_NOMEMALLOC | __GFP_NORETRY);
127+
__GFP_NOMEMALLOC | __GFP_NORETRY |
128+
__GFP_NOWARN);
128129
return page;
129130
}
130131
EXPORT_SYMBOL_GPL(balloon_page_alloc);

0 commit comments

Comments
 (0)