From patchwork Mon Mar 25 15:04:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13602382 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 B71A2C54E64 for ; Mon, 25 Mar 2024 15:05:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4AA6D6B0092; Mon, 25 Mar 2024 11:05:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 433556B0093; Mon, 25 Mar 2024 11:05:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2D4FE6B0095; Mon, 25 Mar 2024 11:05:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 1A5B76B0092 for ; Mon, 25 Mar 2024 11:05:16 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id DECBCA0CDC for ; Mon, 25 Mar 2024 15:05:15 +0000 (UTC) X-FDA: 81935884590.08.F0557D4 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf19.hostedemail.com (Postfix) with ESMTP id AF0491A0007 for ; Mon, 25 Mar 2024 15:05:13 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=URubyu9J; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf19.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=1711379113; 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=3vQ1dtkOjFfZ9tZsC3ERb9pjXE79aY0owaAtowU3qz0=; b=mLTxWIsD4hiJTjBpa4OvydIIU/0kD0cv420zq1PUcgJHu6T5dy7rQjuJ/Dhiiom2yCIVf8 eyROrHOADoKbhkp7JNsMBr7MaMmstZ6CkRhqCmSVCsiK50BOi8HedaNLDrwJhSD4cVf/Pl gJ38cGoKkmMyHRNVdTv8h8gOOeebgDM= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=URubyu9J; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf19.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=1711379113; a=rsa-sha256; cv=none; b=i9M3BoK45V46TCXQe9WSyhlwWwHxn9ffGWei9Psnn4pZeEs5ljEkCrRG63BHJ2aoVNFgYb WsL6pAuKQMdkI+bLsuGNhBblMKqYNGXA/1rEWcM/sB90SbBA4x7ZRUEhnAz1iXvkjULvVo FiZLnkspkl0JcFLEwZfcCWdKJwXWMak= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711379113; 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=3vQ1dtkOjFfZ9tZsC3ERb9pjXE79aY0owaAtowU3qz0=; b=URubyu9JfSfzu2bM7VK7Tyf4Ev44ooPPnaEwJ4DRcMtR+kMyRpmWagChLIZi/NX8IwHc1V 83LTph4mJJLpHi6TFUaXuT0+GiLmiOY7VMywFL7s7+mFotInoQF6+A+VPuSVAzfYGMOwcv nlg0bNtEpnjSthOe/sC6h41nWB2xNdo= 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-645-yJ6slFMQPDWbNsSBMSnoBw-1; Mon, 25 Mar 2024 11:05:09 -0400 X-MC-Unique: yJ6slFMQPDWbNsSBMSnoBw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 CBE288007AD; Mon, 25 Mar 2024 15:05:08 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (unknown [10.72.116.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 90C81C04122; Mon, 25 Mar 2024 15:05:06 +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: minor clean up and improvement Date: Mon, 25 Mar 2024 23:04:52 +0800 Message-ID: <20240325150459.1045407-1-bhe@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-type: text/plain X-Rspamd-Queue-Id: AF0491A0007 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 89agxnr1gz8fa44cg74ixeqy4xya5cr7 X-HE-Tag: 1711379113-397543 X-HE-Meta: U2FsdGVkX181cxh8uwVCyLzX145J5dlnEQpoBkfF0PgSelTuRVcqdzHF5BgeTo8reqwrWT2jw0ZiN6lA3L4XmxyReqkZAH0uO/41Nf0NzjErvEmATvkSr/hx+tlLC58hiyDLDVYGpOpWAu+9CMwUMEMDqm5mqVcb6qhnoQTAA+ra1WDner6SngWY8rUqgPedQ5MkKBTV72/7+yeLhCImbgSiwLPkSqFniqQmzIVwItVgmvKGfrOMFCUS1IAqJeh9TwzDdlhzvMeHdfj/1lVJn9SyC4MWq7iiXOTNun8Zk5WYya42kKN7MSjfiVvQ6So/eX88o4ZD/zxffnvR7SXR/BpBHoO6W+0/pahg8OKCH7puD6UfyKLwDa7MatiGQtuL8CKR5ykIYOEapibkR5rYqbcqEEctcxqztTufRYVoCKO2fhv4ZCrqn6UGKlw6EyQQS8Zv872TR2xTXjDBXMgVf4cIocu57IZ7olul7sDk8RG8cDg2VasyBywdI0J6yHzBQ9kpUGbsGBo/uTgBR/5pXou1MJuRnE+/bCWtQ2mTxifsr0TIqMyGXLcCaegFf+mjG0xeBOU2yDlHB3lq320MZOuGF3fhV8kFIHhAbBpd3SNAD3NIGrPzNwsKlnDRmAmR2xWC37YNAtBTWYxNlfo/mqhhuFP5zOkNcKjQKE6tGWDHxJItbb5uR2jXpz5rExSr25wciMDYvS0dIJGlZT/xHdCSL2ROZLB18CSESVyq773ObavlcFmkOb93nQ6spZvZreki6cJ+p4MIJzbkXt/r1PGO4Sxu4NI4nlszdisyZanZmKxCjJl+8gzRu9ituOPPHOTdPL+pb71Qfuj4pfj5mKMH6aMgvT0Bhbx3s984D2W5ofrvBVPplSeNlDI4CDQ56VrD2bDY9oQhUFQ0t9J35K3eXqozhVZB7kd9Yxa2VfkzD/foTravfz4eYfXCxuDhX1E4Ftx4b2ZgJHIkllx pm4I1diz KCKlc7MZPV5sxyGaxdtgqn+9XIIfOaP8CWbKbHlbHrpmhF6ra7IHsTvHRkJP4ePRdFro+218eU7Scb76aPoXn4orxyVvRi+EA2VouIgWQQxAM/HFF2xq1STuyYw16OLKhF0Pwn/dvikyGNeY/vXtcMu00XQ== 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 mostly are for mm init when going through code flow. Baoquan He (7): mm/mm_init.c: remove the useless dma_reserve mm/mm_init.c: add new function calc_nr_all_pages() mm/mm_init.c: remove meaningless calculation of zone->managed_pages in free_area_init_core() mm/mm_init.c: remove unneeded calc_memmap_size() mm/mm_init.c: remove arch_reserved_kernel_pages() mm: move array mem_section init code out of memory_present() mm/init: remove the unnecessary special treatment for memory-less node arch/powerpc/include/asm/mmu.h | 4 - arch/powerpc/kernel/fadump.c | 5 -- include/linux/mm.h | 4 - mm/mm_init.c | 143 ++++++++------------------------- mm/sparse.c | 26 +++--- 5 files changed, 45 insertions(+), 137 deletions(-)