From patchwork Mon Mar 7 15:07:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 12771983 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 62476C433F5 for ; Mon, 7 Mar 2022 15:07:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C01888D0002; Mon, 7 Mar 2022 10:07:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BB04F8D0001; Mon, 7 Mar 2022 10:07:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A77F98D0002; Mon, 7 Mar 2022 10:07:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0094.hostedemail.com [216.40.44.94]) by kanga.kvack.org (Postfix) with ESMTP id 93DE48D0001 for ; Mon, 7 Mar 2022 10:07:34 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 422308249980 for ; Mon, 7 Mar 2022 15:07:34 +0000 (UTC) X-FDA: 79217919228.22.86C71A5 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf13.hostedemail.com (Postfix) with ESMTP id B86E02000E for ; Mon, 7 Mar 2022 15:07:33 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6F9DC1F394; Mon, 7 Mar 2022 15:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646665652; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nNqrbcx3hlm6bW5QamgpEPJVajxBuWoj7VtZh9OD3tg=; b=CWa8yZuYAuQBxa6hAXICLsLOPu4OQlApY1SyBAU/aQ35Ne3D0XHbLIiY1VHuJnNggRYYGK qBbNLosXBXkusBFxESZ9q3c9WYUjIU/pz+DI2m6mkn4pOqi9csdAG3N0QKcubzYFJ2pxUX sqB7RjWt+4MrKmuYnXLW2Rdmpcqh5JE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646665652; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nNqrbcx3hlm6bW5QamgpEPJVajxBuWoj7VtZh9OD3tg=; b=UyvTe/9aUvyUe2vAwXMVy8aojAB+HmE+v6kjDl7sQONxFIKuOXIeeZvWM3amwmgS7n2E9e NiuUOif/kv2p9ABg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E6468132BC; Mon, 7 Mar 2022 15:07:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nQaDNbMfJmLrHgAAMHmgww (envelope-from ); Mon, 07 Mar 2022 15:07:31 +0000 From: Oscar Salvador To: Andrew Morton Cc: David Hildenbrand , Michal Hocko , Wei Yang , Miaohe Lin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH 0/3] A minor hotplug refactoring Date: Mon, 7 Mar 2022 16:07:22 +0100 Message-Id: <20220307150725.6810-1-osalvador@suse.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: B86E02000E X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=CWa8yZuY; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b="UyvTe/9a"; spf=pass (imf13.hostedemail.com: domain of osalvador@suse.de designates 195.135.220.29 as permitted sender) smtp.mailfrom=osalvador@suse.de; dmarc=pass (policy=none) header.from=suse.de X-Stat-Signature: q4qht9xo9j3k8ux3qpit84squpzneahk X-HE-Tag: 1646665653-224554 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, These are a few cleanups that go on top of Michal's work [1]. Thanks [1] https://lore.kernel.org/lkml/20220127085305.20890-1-mhocko@kernel.org/ Oscar Salvador (3): mm/page_alloc: Do not calculate node's total pages and memmap pages when empty mm/memory_hotplug: Reset node's state when empty during offline mm/memory_hotplug: Refactor hotadd_init_pgdat and try_online_node include/linux/memory_hotplug.h | 2 +- mm/memory_hotplug.c | 93 ++++++++++++++++++---------------- mm/page_alloc.c | 59 +++++++-------------- 3 files changed, 69 insertions(+), 85 deletions(-)