Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2501558imm; Thu, 16 Aug 2018 10:30:36 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzwu/rxPBhpz1sYsTj86enRLrHbh3B4L+brNpzFC5Tb4Yr56HqHdTZj3sLBwsLZGTrnlBmH X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr29901698plp.333.1534440636100; Thu, 16 Aug 2018 10:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534440636; cv=none; d=google.com; s=arc-20160816; b=CwE+lqKOVyckiKqZrQmIhICptOrueZwKj0MHxZS6d24fJ6hc+sn0OoFdtsq+gC2alv kjpmq7KnS4rRuI8HyCQ2wWyr4YMrRL+nVHep1cIu6lvZbGHyyLJk4jQ8VmlhLK8RxW/t egAn1gl0diIvhI24Pz/v1F4oFoZQSCxvFeZVfCYGpkiDEQJQTqIC4Jn7nqW9WbmKCQUh tPUShTybEdJ++7Cip+JIuxuiEJnwIIKTxZqnv08N1+u28fohXjzYYSurpvtRwNX/rJw/ gTGU2K/+V4e7VXmIdV22TtfPOGv4F4/SsiEuR13WspbJLbvpH22cAOhxZb8zat/P2l+y EI3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=ZK8vEAn6/4gnVz/ZB766goJEE7u/KMHw+ZZsajH12tA=; b=ZbGNAP+wROKsbGDCL/G6t0kiTGHcUpfRWZpszgSZHNLbrTCYOuzwYeS9ZuXPyCU4kR BiEtkwTRkbkq6ajtqqNC2vbwlWVIz7rdVB/22AYGhkbG9G2CC3RGA1E1Sadzt4sKqJES Zne3opj3+mMwm7nIi9ZeRU6SUy576+pWpHgkfQKptbcLiXjImxeIrCOoz1GSKzO10sPx SPVqRAPqU6ZuG759uPpnJDaOYHTq51qY7e26kXk1z4MxenBfc+Zsk6aVIsfUJhpKNCgk 3Y2EmiMW1agpMzORNhmDH9NpYCiCsVA25Dl2qTowDD4dvgd4iIS1j8EHRQ35HrNiNX9Q UOQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si26532644pgh.451.2018.08.16.10.30.20; Thu, 16 Aug 2018 10:30:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390804AbeHPNEZ (ORCPT + 99 others); Thu, 16 Aug 2018 09:04:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60840 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728018AbeHPNEY (ORCPT ); Thu, 16 Aug 2018 09:04:24 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D82C400E9BA; Thu, 16 Aug 2018 10:06:55 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-94.ams2.redhat.com [10.36.116.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id C70011010413; Thu, 16 Aug 2018 10:06:49 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Stephen Rothwell , Pavel Tatashin , Kemi Wang , David Rientjes , Jia He , Oscar Salvador , Petr Tesarik , Andrey Ryabinin , Dan Williams , David Hildenbrand , Mathieu Malaterre , Baoquan He , Wei Yang , Ross Zwisler , "Kirill A . Shutemov" Subject: [PATCH v1 5/5] mm/memory_hotplug: print only with DEBUG_VM in online/offline_pages() Date: Thu, 16 Aug 2018 12:06:28 +0200 Message-Id: <20180816100628.26428-6-david@redhat.com> In-Reply-To: <20180816100628.26428-1-david@redhat.com> References: <20180816100628.26428-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 16 Aug 2018 10:06:55 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 16 Aug 2018 10:06:55 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's try to minimze the noise. Signed-off-by: David Hildenbrand --- mm/memory_hotplug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index bbbd16f9d877..6fec2dc6a73d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -966,9 +966,11 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, int online_typ return 0; failed_addition: +#ifdef CONFIG_DEBUG_VM pr_debug("online_pages [mem %#010llx-%#010llx] failed\n", (unsigned long long) pfn << PAGE_SHIFT, (((unsigned long long) pfn + nr_pages) << PAGE_SHIFT) - 1); +#endif memory_notify(MEM_CANCEL_ONLINE, &arg); return ret; } @@ -1660,7 +1662,9 @@ int offline_pages(unsigned long start_pfn, unsigned long nr_pages) offlined_pages = check_pages_isolated(start_pfn, end_pfn); if (offlined_pages < 0) goto repeat; +#ifdef CONFIG_DEBUG_VM pr_info("Offlined Pages %ld\n", offlined_pages); +#endif /* Ok, all of our target is isolated. We cannot do rollback at this point. */ offline_isolated_pages(start_pfn, end_pfn); @@ -1695,9 +1699,11 @@ int offline_pages(unsigned long start_pfn, unsigned long nr_pages) return 0; failed_removal: +#ifdef CONFIG_DEBUG_VM pr_debug("memory offlining [mem %#010llx-%#010llx] failed\n", (unsigned long long) start_pfn << PAGE_SHIFT, ((unsigned long long) end_pfn << PAGE_SHIFT) - 1); +#endif memory_notify(MEM_CANCEL_OFFLINE, &arg); /* pushback to free area */ undo_isolate_page_range(start_pfn, end_pfn, MIGRATE_MOVABLE); -- 2.17.1