From patchwork Tue Aug 20 09:16:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nadav Amit X-Patchwork-Id: 11104399 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18EEF1395 for ; Tue, 20 Aug 2019 16:37:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D7D3922DD3 for ; Tue, 20 Aug 2019 16:37:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D7D3922DD3 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=vmware.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A5DEC6B0006; Tue, 20 Aug 2019 12:37:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A0DD96B0007; Tue, 20 Aug 2019 12:37:34 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9251C6B0008; Tue, 20 Aug 2019 12:37:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0084.hostedemail.com [216.40.44.84]) by kanga.kvack.org (Postfix) with ESMTP id 721226B0006 for ; Tue, 20 Aug 2019 12:37:34 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 0C6CF181AC9BF for ; Tue, 20 Aug 2019 16:37:34 +0000 (UTC) X-FDA: 75843362028.15.kiss46_7c012ea9372f X-Spam-Summary: 2,0,0,7997ade3651d37c9,d41d8cd98f00b204,nadav.amit@gmail.com,:mst@redhat.com:jasowang@redhat.com:virtualization@lists.linux-foundation.org::linux-kernel@vger.kernel.org:namit@vmware.com,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1437:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3867:3868:3871:3872:3874:4605:5007:6261:10004:11026:11233:11473:11658:11914:12043:12297:12438:12517:12519:12555:12895:13069:13161:13229:13311:13357:14096:14181:14384:14394:14664:14721:21080:21444:21627:30054,0,RBL:209.85.128.66:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: kiss46_7c012ea9372f X-Filterd-Recvd-Size: 3114 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Tue, 20 Aug 2019 16:37:33 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id p74so3191004wme.4 for ; Tue, 20 Aug 2019 09:37:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=E4X7QCNLqGFBsy/7pYjpRVoBo5sZi0bTAtJeoQQ6ohc=; b=ay7MBqohICF7ItaQAcLQEXAbxLkD3GLbtKK8+RvK3zyrLt57kIbG3TKGy/hl/D9aAI VRuEgKn8EjSwiNNw+OdDXjazEyUKuQreyuZjJdpYsGEDJxOAcn+Kynp7k07P8OpvT7vR 5y+J4d3S9A2H2i07NierdkVGHwYc2N2PFKLxDSwqlcruFmqOEkZqjj9Tnldwi6BdwfJE wGpe7OLhhxuHY1dCB1MUlIyOmJoLe+PPwGKRO4SwzYUhFtl6KFW3d35gmZDCbqgPjBGg aG/x6dmIKbojkIMKO/TWcME/s7jVrAW7zqIAfR+y4PoimNp10eoR6cCTeF+7pEimmY0d WXvQ== X-Gm-Message-State: APjAAAVIQ4jASTbe1LcQZF8YzoxAL6ER4LQPfRMCgy73EylJA8XRrZuW KcJvLvOIn/PXUG/9uDNwT9E= X-Google-Smtp-Source: APXvYqyWdL5QMRDrlWABWdxtx+qi5mJSVMhKc+4wusrmLOkgTE8w+/nuZlj5Jc1f8al4Vo4HPQPOEQ== X-Received: by 2002:a1c:2dcf:: with SMTP id t198mr858820wmt.147.1566319051721; Tue, 20 Aug 2019 09:37:31 -0700 (PDT) Received: from sc2-haas01-esx0118.eng.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id n14sm58485385wra.75.2019.08.20.09.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 09:37:31 -0700 (PDT) From: Nadav Amit To: "Michael S. Tsirkin" Cc: Jason Wang , virtualization@lists.linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Nadav Amit Subject: [PATCH] mm/balloon_compaction: suppress allocation warnings Date: Tue, 20 Aug 2019 02:16:46 -0700 Message-Id: <20190820091646.29642-1-namit@vmware.com> X-Mailer: git-send-email 2.17.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 Signed-off-by: Nadav Amit Reviewed-by: David Hildenbrand --- mm/balloon_compaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); struct page *balloon_page_alloc(void) { struct page *page = alloc_page(balloon_mapping_gfp_mask() | - __GFP_NOMEMALLOC | __GFP_NORETRY); + __GFP_NOMEMALLOC | __GFP_NORETRY | + __GFP_NOWARN); return page; } EXPORT_SYMBOL_GPL(balloon_page_alloc);