diff options
author | Nadav Amit <namit@vmware.com> | 2019-08-20 05:16:46 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-09-04 07:42:01 -0400 |
commit | 02fa5d7b17a761f53ef1eedfc254e1f33bd226b0 (patch) | |
tree | 65a4989eded043aea6cd3fa4e03844614b1a8826 | |
parent | 3d2c7d37047557175fb41de044091050b5f0d73b (diff) |
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 <jasowang@redhat.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
-rw-r--r-- | mm/balloon_compaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c index 798275a51887..26de020aae7b 100644 --- a/mm/balloon_compaction.c +++ b/mm/balloon_compaction.c | |||
@@ -124,7 +124,8 @@ EXPORT_SYMBOL_GPL(balloon_page_list_dequeue); | |||
124 | struct page *balloon_page_alloc(void) | 124 | struct page *balloon_page_alloc(void) |
125 | { | 125 | { |
126 | struct page *page = alloc_page(balloon_mapping_gfp_mask() | | 126 | struct page *page = alloc_page(balloon_mapping_gfp_mask() | |
127 | __GFP_NOMEMALLOC | __GFP_NORETRY); | 127 | __GFP_NOMEMALLOC | __GFP_NORETRY | |
128 | __GFP_NOWARN); | ||
128 | return page; | 129 | return page; |
129 | } | 130 | } |
130 | EXPORT_SYMBOL_GPL(balloon_page_alloc); | 131 | EXPORT_SYMBOL_GPL(balloon_page_alloc); |