From patchwork Mon Oct 21 09:13:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13843744 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 9B371D0E6D5 for ; Mon, 21 Oct 2024 09:14:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2DFCA6B0083; Mon, 21 Oct 2024 05:14:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 28F5D6B0088; Mon, 21 Oct 2024 05:14:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 17E7D6B0089; Mon, 21 Oct 2024 05:14:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id ED5456B0083 for ; Mon, 21 Oct 2024 05:14:23 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 3CF2E817B6 for ; Mon, 21 Oct 2024 09:14:10 +0000 (UTC) X-FDA: 82697048112.04.B69622C Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) by imf27.hostedemail.com (Postfix) with ESMTP id EEFB34000B for ; Mon, 21 Oct 2024 09:14:06 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=rdAj9ZT7; spf=pass (imf27.hostedemail.com: domain of thorsten.blum@linux.dev designates 95.215.58.176 as permitted sender) smtp.mailfrom=thorsten.blum@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729501911; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Wlq+3bW4+TRGvbmu1pjeIeW38H6q6bepbBN1pV11OEU=; b=4ZQ1dasSE1PRZDMgLYXmKqVftCy2YK3ZlozSmTu6tz8XjLnS0qyWuhMR30sMtM64dAJqeF gQPZ7++vQ+TqofOMkDzi/ay3MrQLo7aqRpQw4UXkam9X1hgACeL4NDH1VY1KT5yuNGj311 ZyLz8B3QE+kdCZBEcyMmvRs0p2ldwhI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729501911; a=rsa-sha256; cv=none; b=sEuvo0llUalHV4axsacgpdnmDWqy7Fahgmxa0JfFWxVSD5GgUsVirAH1EM+G8jEnXCgmf9 s82say761e6a4exuwRYzOpnO+hLZJ+XPddk58ns1MeP7GsOJtPk8pnK6CjcIMpidg1p+nA W2KtY+rFlaSdAYohWqconF7OHSAFrfM= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=rdAj9ZT7; spf=pass (imf27.hostedemail.com: domain of thorsten.blum@linux.dev designates 95.215.58.176 as permitted sender) smtp.mailfrom=thorsten.blum@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1729502059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Wlq+3bW4+TRGvbmu1pjeIeW38H6q6bepbBN1pV11OEU=; b=rdAj9ZT7rjK4bLOiSJ8iG8k/loXlDfy2JDlV4T/hM930LE2b1bVKcQg3SHK7EcUfCAdWNR 5L7hU7++bSA4Kia1LaxPZghbA59KQJI4n9pgR1J0Uj/usjFsJAo2q7phFV8a82u8lNfp+j B8pb+uvECcTBLPg/TWz3Nib5IhDVw2o= From: Thorsten Blum To: Andrew Morton Cc: Thorsten Blum , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/page_alloc: Use str_off_on() helper in build_all_zonelists() Date: Mon, 21 Oct 2024 11:13:40 +0200 Message-ID: <20241021091340.5243-2-thorsten.blum@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Stat-Signature: 7egbyd95xhxyteh8zutp5mwmanqxes3e X-Rspamd-Queue-Id: EEFB34000B X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1729502046-597363 X-HE-Meta: U2FsdGVkX1/hYSVD/nwxN/s4EvIkJb88Wk8ClJhpxCOmVz9SuvinGOriraRIXQM05hNcocDdqW0go/N6PLBQTl+UygAWR0s531l7qGF+0ujWGrxsQV97JEscFsJWlPovVDjfSGfUf4fp4odK2uNWCJ1P/vamhar5zU7NKnxX4DCrE8JbrO3FmRGzjbt0JizEZXJ3xjwUGkjqDzXxJIS4QFIZmzYGfojICyz2TBSNWeNOiHw9DVvCkKifQR5JdZxsrz3T8YlEznHJBekOHBHlv0x+jI9cVUdmf/BrcJiYDwO7rG3bbthSG6kGCxBtapb8KIIrW2b1Yn+Vji8PtBItxOuh/H96FDgM/AEFfNBjKvPo3Mdjc8Cvcf6ty3SdR73T2IWqQkG2+grssQLEg0ElkzPLOsIb82GQYPvuzgffaTXgRkWV3qt9ve0LipfzWOx+ltc7F19dEB0HIj1QIGJFZbN67q+D/ncw95HNOZIJh0Q76eXPpzyFYLXJrhge+ehs4fieXq/aIgdv2PTEwYpoaH8Uxidx/YROSNSXa36sNNtsHAVCrfAyi2b+qbFr/1jSGJZ15owPHMpHHxtdddU9Th+iViADxYYhd9fnDnmX5rucv9t5//fzAcZg501KHe0cKtL8h3j9NTFt19IEtIRQEuXIpgZ6s3F7tjGBrWCvxOh7ZTZCz/bm12kM+v4OlsZXA0dTKvo2BH9hCyCVn7/7OFxAIDAOAHeNl30cS9eNBCioNSH46+xRUBpN7lWNb6drvKIPBV6EbDJv393w3au+csIpqnLq7l0C8XRJLpLnFCFkIu5mbx+EVuZPFjWknf4RPCx9nZ/d6WO+EDmzE7XA3BKTJFpATEJ2uMknH8qs/CCJIKXqGVpb+tzJUp+SfcWp/xrj+73TNnwJlnRRo0Pyfgi1Z2JLEdDNcipcYirv+TbxVADMavGixhDZSd7uAjKVTgZp5i7GNIoyPLKsCZX 97CrqgFV QKfYiHBDR3yK9JFBqKcZv3EMjYrV8DJLDut/OVl6Il3Qp7akvzpQA/ZFrbigVFyzXQwDAM9YC5idAB6blj4TItT+SYZsNp+fCq1B2p3mj/2CMhkDomleJT3qh0ekdD86iBaB08Q8Gw8mFYgXxv77yzgeCUjSDk9OSHWjTlpch5lJJis9W1Gz77FE90w== 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: List-Subscribe: List-Unsubscribe: Remove hard-coded strings by using the str_off_on() helper function. Signed-off-by: Thorsten Blum --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8afab64814dc..11d3fa3587db 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5495,7 +5495,7 @@ void __ref build_all_zonelists(pg_data_t *pgdat) pr_info("Built %u zonelists, mobility grouping %s. Total pages: %ld\n", nr_online_nodes, - page_group_by_mobility_disabled ? "off" : "on", + str_off_on(page_group_by_mobility_disabled), vm_total_pages); #ifdef CONFIG_NUMA pr_info("Policy zone: %s\n", zone_names[policy_zone]);