From patchwork Tue Mar 26 06:11:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13603603 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 F037FC54E58 for ; Tue, 26 Mar 2024 06:11:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7E8A76B007B; Tue, 26 Mar 2024 02:11:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 77BC96B0082; Tue, 26 Mar 2024 02:11:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 612126B0083; Tue, 26 Mar 2024 02:11:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 4D66E6B007B for ; Tue, 26 Mar 2024 02:11:50 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id C7A8F140808 for ; Tue, 26 Mar 2024 06:11:49 +0000 (UTC) X-FDA: 81938169138.05.C064534 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf09.hostedemail.com (Postfix) with ESMTP id DF9FB140019 for ; Tue, 26 Mar 2024 06:11:47 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NEUDR70u; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf09.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711433508; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=+fvluQx1QLlJ54ZyyIMjGacO2IU8Z19o0xRXvo8dxLs=; b=2zq7vEcto+kbSBJsbgcTL/hyA0b5i4ObfWC5HB0yxHdyR1DSPT8UcP1UuaRcnFqfT3j8kY DGOlma+n5dhkvX+opP6nMWj1M1YB7cr4KUhT9zQM7RZBT9TaYkd8e6oRdIq42V7kNDLUnY TpluCugzSxKq8/IFzbqaPHO0MP6foHI= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NEUDR70u; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf09.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711433508; a=rsa-sha256; cv=none; b=LRIUXscaOVRSpuH7sSJwb6GnVp5PqivmWMHV1UMZ0sMnnxEDGmBq5gPfDvPHT1at0IDyJ3 0HJ0kSWEyZgHaO6oTsWpeDddPhOVF7tQ1IGpzZ9cwBTAzlDvrEQax9CsuTiNudin+l5DCM nCL1MoA7j2w2opPEsY2PkyTvyaYR36c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711433507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+fvluQx1QLlJ54ZyyIMjGacO2IU8Z19o0xRXvo8dxLs=; b=NEUDR70uQS7brS1anJwv7iQOE2gdzSoWZI2o4ZvzhWPZ4ROC8/d7y3gZcve+hcUjeWOu+w PjTkUVgxCbAeIWeWZBf82lD13oTM3LHBBRN4WwkjSGuVW5CW8NxCCZJaXOq/+5j78zwsdv zNwoFNCMgQWuisBG9HG55dI4CGVfsaI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-81-anbBtk8aPj-CWva0gN4fmw-1; Tue, 26 Mar 2024 02:11:43 -0400 X-MC-Unique: anbBtk8aPj-CWva0gN4fmw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B8F2C101A586; Tue, 26 Mar 2024 06:11:42 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (unknown [10.72.116.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 750C910E47; Tue, 26 Mar 2024 06:11:40 +0000 (UTC) From: Baoquan He To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, rppt@kernel.org, mgorman@suse.de, Baoquan He Subject: [PATCH 0/7] mm/init: minor clean up and improvement Date: Tue, 26 Mar 2024 14:11:26 +0800 Message-ID: <20240326061134.1055295-1-bhe@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-type: text/plain X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: DF9FB140019 X-Stat-Signature: i1sbnbr7g6wdn8113qirfzjo9as3szpo X-Rspam-User: X-HE-Tag: 1711433507-778298 X-HE-Meta: U2FsdGVkX18bvbnKiHFqS9Al2sxlDZeYFfwI9td4YvRs+3lDgZhJR4+2nW8YG/U8vrn5K6MePfRcuF1aCC03Kbnf4WBvKu/KWqqljxprkST2OQdq/yx35Zkl4o2s6P+6oAafbGnjuOEFOxyJiku0S6MVvvkv9CFLeLTwZtBORwJKOaC/GLHolbWI2bqAX7BniaLvDzNtEx2OfRmYAGOUY8+T18AstALqsYNXML+zZq2lk0ktn9nnOdrsxOMPkyQmI9aOB3sWHANEiRSkUZEpIYNCl6tmO2Eh6wHxQprx72Aw6iWRIrn49jSVdeQy3BbCrEXHgEdRUrHao8Smf3DDKnnCTYrRMYtlmQfuCKgXNWolmSvwa8qyIYeVnxuzZpEIyj2Z4jfgoP9ZSwTO3He2rcy7A1DsiggYnajTPyJDD/QPhYYGsBdEytWFqrb1uPv9HM4v1AXy1lrK5z8o4HSO89tAIsMv9ERc7Yv2VlU/45DyUZsEtoFE502cI+sU7+4oPnSi3p58FcZkmW+dTTiM+0XroGRrNaQ3jLMvcog55YbpvgvPLy78wk6TzE/y3qMdBNqkoYeqwH8wiuuSblfebcjUePFcOfUuKdji7TocOL47CagJYQRe/K3UZG5zmqoqvgR4fimI1Zq8BzQ3jjEJjgkzzOeK7hUteQ8chQzqUHx6tIIji7lXAlDhYPc9tqh8CCUs8mpR+nAPhD1fW4yWtUdcS0zLbzXyavZO/7/NPayXAJVeiomTI7ZG0K0irJDLYYLHBoznl1nA/rTPxgzcndnIzF9nTbZ6s+Hvbx4sZvVONC/Cu/cxFEanTgyKA0HX6uI5auRSL9+7pUJDunBuS2wL1bhaelzbnjcIBNzZfMMYA/TPFzrZSXz6UZxucB9HT0DVrob3BD6w4iJB/K23X0B1lpNemuw2U6cTITerCwjhZ91v2qCDh5OYXj5Rx/tN87UgktqWsFlmfAWQsZa WKfAjlZ7 /5PRoY2eF6QtEbBhzKU0plHjIE8C5pNkA284HKnKLtf5CyotfIjzlrrZh19XI6B5E8/RAjE7WGTbBXWMtrF42Wmq7hFoXQzIOr41YoLiBnJvQxW21F69koh+WgcqLU0ri6t3/Px0exKId+Ihv68SgSPgWNA== 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: These are all observed when going through code flow during mm init. Baoquan He (7): mm: move array mem_section init code out of memory_present() mm/init: remove the unnecessary special treatment for memory-less node mm: make __absent_pages_in_range() as static mm/page_alloc.c: remove unneeded codes in !NUMA version of build_zonelists() mm/mm_init.c: remove the outdated code comment above deferred_grow_zone() mm/page_alloc.c: don't show protection in zone's ->lowmem_reserve[] for empty zone mm/page_alloc.c: change the array-length to MIGRATE_PCPTYPES include/linux/mm.h | 2 -- mm/mm_init.c | 26 +++++--------------------- mm/page_alloc.c | 28 ++++------------------------ mm/sparse.c | 26 +++++++++++++------------- 4 files changed, 22 insertions(+), 60 deletions(-)