From patchwork Thu Mar 14 00:54:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 13592016 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 5351AC54E58 for ; Thu, 14 Mar 2024 00:54:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BF8488D006E; Wed, 13 Mar 2024 20:54:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9297880074; Wed, 13 Mar 2024 20:54:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 669FF8D006B; Wed, 13 Mar 2024 20:54:43 -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 455828D006D for ; Wed, 13 Mar 2024 20:54:43 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id F10511A01D7 for ; Thu, 14 Mar 2024 00:54:42 +0000 (UTC) X-FDA: 81893824404.30.700AF6C Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf03.hostedemail.com (Postfix) with ESMTP id 1923F20015 for ; Thu, 14 Mar 2024 00:54:40 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=35u0CG1V; spf=none (imf03.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710377681; h=from:from:sender: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=V+ZVRZICTWAfdlng4uK3SLZO/6XHiTftuTJ5tPtJc5c=; b=dJS7OIa0vzA+n2I7PnA7BJc8NEyBDF/k3M2PgW7WB2CyNVj7zR9qnY8QM7yTUYCBEhGEJX RZnbfWfF42cdnN1NJ102S6jR6oGikw68hnUv8l+X4PL6BoTdkFn9JgTVcE4jLZNt6cGocC haTlihvQpi3t8smT17ue3v3BpSGNSa0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710377681; a=rsa-sha256; cv=none; b=T9HlrxGGV+6lNTRm+R2o0HzGZLzfeDNDAkz40g8qVanU94zBjNWJ4EgLE7ufyDojKQmtlG rnPLwZ9hsCL1D+HLvn/3LiVWDbuW86K88d6UXIhx4CztNkLEwerfXO00pNcR4JnUYNRIrU 2BNNvc68UzB2neE1TWW4vsjWlQK/XQQ= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=35u0CG1V; spf=none (imf03.hostedemail.com: domain of mcgrof@infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=mcgrof@infradead.org; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=kernel.org (policy=none) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=V+ZVRZICTWAfdlng4uK3SLZO/6XHiTftuTJ5tPtJc5c=; b=35u0CG1Vu/wTheLe79swQh6gUb RBRP7gE0uw5ozHsWFkLpj9pW+P/H28fdcshMKtrYzslZ7Jw1+J915AH73GINTcuhBJn1Qn1q407bN tINR5A6o67crJvrkaPLq956p+JaPeVvOIs8jyY+4ypS3SRr7wCQqjRBCsAhoH4SMcmNH7Tjvz3I3g wBwjeEcdF/ArYxHRUC9j9zrv9vofHiVUFc66QN/hAlRMmJ2kp0LWEq13pS26omxtvlkGu8ATQhhe0 foc5DWD6L/ZbM/0nwUs2VDnnzz5AtPYsiiktHaMfH1hWOr8uC6VxMOCD4VHsLJpY4FwLJraOgxutu NvKAd1lg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkZMj-0000000CQny-0Oiw; Thu, 14 Mar 2024 00:54:37 +0000 From: Luis Chamberlain To: akpm@linux-foundation.org, jhubbard@nvidia.com, vbabka@suse.cz, mgorman@suse.de, linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, dave@stgolabs.net, p.raghav@samsung.com, da.gomez@samsung.com, mcgrof@kernel.org Subject: [PATCH 0/3] mm: random cleanups Date: Wed, 13 Mar 2024 17:54:32 -0700 Message-ID: <20240314005436.2962962-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 1923F20015 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: hre9gosndzxp393pt3bwb13au8kuua4z X-HE-Tag: 1710377680-414001 X-HE-Meta: U2FsdGVkX1/KNl2PJxnxgd/Fs8afkUejZRg78qnYvc8dj/hG6yXd+cRR2N4v48R8DnwYUiqTBaVxP7puDfL2oeLIzrgp09Eucpoc3xx1UiRQOHQ/0004WtwBe8/LVNek8JojWC8r0Med5UqXOUIUPlJBS06IxGMqV20rowqkyY6XvRSLwqVhJ9PgOt5PvSFm1Flxi0vGhKCYP3cno1UmuizmnME2pEWWFcloi2cvQN2uuqnckV4obJkHLhDN+rVlTy19aTKleeLvNQyqjwgezfgCO+QO8HiZEV5PvvSC3SR7Oh/2JA0ilmGbrW0fkOR6GsTboNEbjBmIbzw6F/8yd5AnO5Hwv4sapunY0ErBMA5DazxwtFO6QZrpZ0pHXHHHkwaTAGzq/xVtxq4DkiujZIOxwgpLmoThyXknpNJK60K/uZfMtVsKwDh+DRahTeAffcpBeiSSVzTuo887endTXyoYzAQh+/a6TK3PupgllSY0aIAgxHiwrEqNBaxxG9IYKmHJZYAJqBVbg+QrveC/mn7A14Fmepw+evvMEAvg15PB99fWU+Hc+z1vAQ5tuZwJ5LC9pOX3uyoRDy59+o0DLN0srEhGNd+j8uK3G+GpTvYaoyCUm9cSKOJ8IOm7TGQ4jcshUreMXGOIo70NXQamXWPw0fONyjp7dnzGe1OQDEleBXXU3V08fswplBixqzsMgOMCN9vXbkbz7rrlHFQsY5ip5+lhrH8IAdcQg/dHZporUZH7xslVRuq4xC5CR4s42pH/dxyEJKO5WxhJmBaPBnGcsvOEDO8T3uC4RvbiDiphMxVPxMVnhR2anHJsmCwlwjrxIw3zrHcDk7f6kItQaw4XOodAa76WuA3HlZzwSZO52rf17ka+3kuSKuUm6CfWDa/50MlJhzZIFAE7R24tSWkbX6seUQ7c4Dtlt0S6iCJFuOYjuyWX/Fon/fpJIZF6eU8sKCX85p/uEQZBh+m RS69CiaB cOa03hNT1V1+U0HeGB+iE3vIU7+uNMkm+4B4xgCj9b079FGR1ArNj2KWAjeSFCoKbjlElJH4C1mWExtXsrMSqNpFEAPM3v86cJbu3dRMek7HO63s= 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: Here's a few random minor cleanups I spotted while reviewing a few mm/*.c files. No functional changes. Luis Chamberlain (3): mm/show_mem: simplify ifdef on si_meminfo_node() mm/compaction: add and use for_each_populated_zone_pgdat() helper mm/vmstat: simplfy extfrag_show_print with fragmentation_index() include/linux/mmzone.h | 8 ++++++++ mm/compaction.c | 9 ++------- mm/show_mem.c | 5 +---- mm/vmstat.c | 11 +++++------ 4 files changed, 16 insertions(+), 17 deletions(-)