From patchwork Wed Dec 29 13:10:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12700878 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24FE7C433F5 for ; Wed, 29 Dec 2021 13:10:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8276A6B0073; Wed, 29 Dec 2021 08:10:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7B1686B0075; Wed, 29 Dec 2021 08:10:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 643CD6B0075; Wed, 29 Dec 2021 08:10:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0176.hostedemail.com [216.40.44.176]) by kanga.kvack.org (Postfix) with ESMTP id 561E76B0073 for ; Wed, 29 Dec 2021 08:10:35 -0500 (EST) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 1A3B1180EB719 for ; Wed, 29 Dec 2021 13:10:35 +0000 (UTC) X-FDA: 78970866030.31.5F1004F Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf14.hostedemail.com (Postfix) with ESMTP id 1C7E3100003 for ; Wed, 29 Dec 2021 13:10:32 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 62863B81902; Wed, 29 Dec 2021 13:10:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA207C36AEF; Wed, 29 Dec 2021 13:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640783432; bh=J6ZMpaN2aHN46NtgTZHJCKdNW2n5fbVEwYw8XD91LhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qo+mEMLVm+mY10GwS6gaWaS4LWzHzZ5uYVH+x9k2MWivYxaDiOZS2m0iXl2j3LfSp Jq3SAt4k2l76kgapOiNPAgpsMTWqhhXgHqty7C/DMPq8l8xfk7jsPafg95sC5yl2sd eLlp2CsWIG1DKm+RPZkQ0A/Lc3QM8zqvGFv/1W3DVTBBqro5F4X8rOa8ibgw7azsVL jswaGK6sVWdlKQtFWxSGxHb14yc4KH/Tu2ulkRYJ0HEnwJNckuqVAgyexAMLtnNDVM nEpOzXzJKjkA14QuIx2qrJFQzBVDg+0SNV78wBRg2isf2xQiP/nt0Jzws5jkiyrd4M z3PZ96Qr5rGTA== From: SeongJae Park To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 2/4] mm/damon/vaddr: Use pr_debug() for damon_va_three_regions() failure logging Date: Wed, 29 Dec 2021 13:10:14 +0000 Message-Id: <20211229131016.23641-3-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211229131016.23641-1-sj@kernel.org> References: <20211229131016.23641-1-sj@kernel.org> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 1C7E3100003 X-Stat-Signature: u1tughyrubfpk7ot5qtci98zo3ju8x3q Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Qo+mEMLV; spf=pass (imf14.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1640783432-404218 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: Failure of 'damon_va_three_regions()' is logged using 'pr_err()'. But, the function can fail in legal situations. To avoid making users be surprised and to keep the kernel clean, this commit makes the log to be printed using 'pr_debug()'. Signed-off-by: SeongJae Park --- mm/damon/vaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c index 9e213a1d60c9..7997e1c000ed 100644 --- a/mm/damon/vaddr.c +++ b/mm/damon/vaddr.c @@ -238,7 +238,7 @@ static void __damon_va_init_regions(struct damon_ctx *ctx, int i; if (damon_va_three_regions(t, regions)) { - pr_err("Failed to get three regions of target %lu\n", t->id); + pr_debug("Failed to get three regions of target %lu\n", t->id); return; }