From patchwork Mon Feb 27 09:04:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13153111 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 581F6C64ED6 for ; Mon, 27 Feb 2023 09:04:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 48E7F6B0073; Mon, 27 Feb 2023 04:04:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 418106B0074; Mon, 27 Feb 2023 04:04:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E1086B0075; Mon, 27 Feb 2023 04:04:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 1ADEA6B0073 for ; Mon, 27 Feb 2023 04:04:39 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D7D3A12071D for ; Mon, 27 Feb 2023 09:04:38 +0000 (UTC) X-FDA: 80512486236.29.A09763B Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf07.hostedemail.com (Postfix) with ESMTP id 38B4940011 for ; Mon, 27 Feb 2023 09:04:36 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=EwyXzhZW; spf=pass (imf07.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677488677; 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:in-reply-to: references:dkim-signature; bh=2bSDRiTg/XaRCHhBkv/ywYeEsgW+EqBr6qiOapMsyy4=; b=Lv8c2nZdqYduybcAB/DdJjJ0EwcFYJBD7OGn8gCG+pwq0qRn2GTeY0LJ83WMmquGHj+Ec4 aWysuvkqwFA7bpsNKD/fu/Dp6ybok5AqB/ehsjauxilAUTTlE+LbUyxecKJPGX19ThjqLd E1Of3QCQYQfsQFzlsRiT+94ZZqVvqls= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=EwyXzhZW; spf=pass (imf07.hostedemail.com: domain of rppt@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677488677; a=rsa-sha256; cv=none; b=UFM8lu0LiG2GiVJmBbvpFNe7Ms2GprumWjyvo5a9oC9574mIz8GvD9MUcpsSbRFFqGxpr/ pgNKpoz7MaKLKOAt6U3+Ws5OATwoLCcBhgEo8IdoNGGDP+GrA4ZMCf7ALdS/+hkTPThBnw tv+jASKFz/WjhiVnv2vKl4YmQedYkQA= 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 9AB74B80CA0; Mon, 27 Feb 2023 09:04:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54ABAC433EF; Mon, 27 Feb 2023 09:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677488674; bh=TnR4+ResYQpZ7xd4crafgGHzrGYANiSPQn6G5mtYVpM=; h=Date:From:To:Cc:Subject:From; b=EwyXzhZWtuudP1fNwrlZfHno7WNKgPViYVPgVpuwG4snqxwIlwD9PY6VzMm1yhpaR sv2qxlSP+BoRU3YHOb5V8e4p5KAxxwzcg8n62k3mFEGkNbFbBHwTNMuCnsNsIKBKSY spFYXdIM11gxlRdQQuUis6HczWKfF7kwE/joK/eHPhfQJssShBj7x4640Qxh3vaz7+ RDBcKrtOEr0VVTFsnQ4Vzho0s/H5VuqhbPwfcfuJ+3qwcKyevSSOoLcJn75ZerpLtQ GX5kiX5O/1SlKj7w/Bn+0brgTWf8ClyBVvyGWGTgkb/e6+B/mNwPkRFzx5YSelOOn2 pIGII0FO1qwJA== Date: Mon, 27 Feb 2023 11:04:22 +0200 From: Mike Rapoport To: Linus Torvalds Cc: Andrew Morton , Mike Rapoport , Peng Zhang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] memblock: small optimizations Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Stat-Signature: xhjnpfc9hjeeohmzn8sf5786f36mj8qa X-Rspam-User: X-Rspamd-Queue-Id: 38B4940011 X-Rspamd-Server: rspam06 X-HE-Tag: 1677488676-151522 X-HE-Meta: U2FsdGVkX18+II5XxeANwCfyjSBGfDk5BQIKcjGu+PPSGPWGcMMau6wdNasDLCemrwoRhZWpsvh/R19jELGvJy19kfy1hR4Ejj5z2m9pTTjNLH6gRa1L5T+CEZhEnIZo0hvjo4FnCR8vWBHJqBRzsw5+TBARHz3047VOGnZqhg05zbyRxwQaM4tOWwks6lSA7TVU7NUEJYIsGGId99kSGtQEGqmzAvP+D7noQfJZGnlAQJGjRjfv/Dv0CpVBh//30vILF6Soa57s4Y2ogJYsGH5C+N68oz3fuvUqM3CKexyYHpvbft3jGUBLOB/G1jd2UGwQwGdwaesFEQX5TJcib4hQACyEI7T3Cs8j0INrXeIt5etpGkzBvjkSF3eFebe0zbmvkYHiJBxtbepMAKxxtJVz3in64SXBfnrNu3URcjeZbShwkVilslgdqXM0eN4t9S89pJO9btYZezzR+AroPebYG/zLR3IO3PhN/p7xvp8iQru8OSOHm3v8e3wJ8qsv3gjhT8IapuPLYWldzgRoWWsqFZmGhdi/obHqQ3+DkwrhDzbsJNgwTk8ztpldtsYARIZ23b+qjhXyYmMRcJySBaY/HH+HIQ+hFuOPs1c90sI/uTEwqUMQ3dB78281bMip/zIMwDgdMIi3ImD4seNM/8BJVbXclDX06gFatQRf8mxY3VB2AgCDi4XXR/aAC/WcW9YKyxgKuUqtcH58p/6SSeoNWteUHrTwAJtAsvQS8n1Abdc3J7kgG7DbXUk2Pf7mksYZeKt7B2MnN2i4CCNbqz4MAMAgydj4FgWoJOx3Xis6gaNJDahA19OfrB5qwF/YwepJHNJcycbWhrTCE9onfjtXo2A/IenkahUCcpyOhvawMiTr8++NeRfnX4/fjLwLKVV4k6klB2ujxKzTPH2yO7Hde2nDMafMHQK2tZbpIcddQHwpyc9NA+ViOBV4oLvfn5FStKxeazO6EH/DFC1 k8alwmwO 8mHkzBsvZg5g3S3hzwtclQXda0Ev4zXNTfg7cVN4mCiJu0gk+iHJ605nOatXpVeD4zTgFhpxTRvjfy+O3aIp9lMmlBk/2Z0Sy4mxgFPsJLfHvJgOTkSpaR1kgprR4nX6El4C9jOH24gWiOAUDDjxhTnaMw78fN8lf+9hy7w68k1/dGbgRQwJ0rd02aE9Fhw1UWot6wYMw89BYkPkpZngUVJamwPg+xgid+AuWj7yyIwJ/pzV8nGAPqX8vvZeIsuLh/aFN5/ZoAXkejDVk215jFgfzvWnpFwYCUd3awFZdjSxkGNMkwo+y6Y8rpuqEUW6dMQXEUEpvVFqdZJX+N9wJG081tFKccoeoonPGGpiTrAaKdZs= 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: Hi Linus, The following changes since commit 6d796c50f84ca79f1722bb131799e5a5710c4700: Linux 6.2-rc6 (2023-01-29 13:59:43 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/memblock-v6.3-rc1 for you to fetch changes up to 2fe03412e2e1be3d5ab37b8351a37c3aec506556: memblock: Avoid useless checks in memblock_merge_regions(). (2023-01-31 15:51:56 +0200) ---------------------------------------------------------------- memblock: small optimizations * fix off-by-one in the check whether memblock_add_range() should reallocate memory to accommodate newly inserted range * check only for relevant regions in memblock_merge_regions() rather than swipe over the entire array ---------------------------------------------------------------- Peng Zhang (2): memblock: Make a boundary tighter in memblock_add_range(). memblock: Avoid useless checks in memblock_merge_regions(). mm/memblock.c | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-)