Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2353194pxp; Mon, 7 Mar 2022 13:36:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCOhPNm6aEbpGm56WkbYUtgUZAPURreIGhOKYw3aszOkAhe7GmwoJzHRURjqLydEnh+bX1 X-Received: by 2002:a17:907:96ab:b0:6d7:1720:15d6 with SMTP id hd43-20020a17090796ab00b006d7172015d6mr10710477ejc.322.1646689014962; Mon, 07 Mar 2022 13:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646689014; cv=none; d=google.com; s=arc-20160816; b=lbZicp/epsm0MRmkvyHCQe7xPx0ZzkLbx8cDB9CGGnSnyQdz0Q4ekO1D7AvpN4SmjO fDgoa0UIL4p5v6soc0nAENEyERTKd4dJPub/NEAauyAmwj86wk6ukWX2nBrOjTkEaj0p 6N/51Tj2ZvuGKzSUoeAq+OoTrI9pV0ZfeEZR2kNEu5CtNaFkBC8+hrJJVbGUbZIwo4PD /hD64qviVs6QkoSvqa/nE+cvzAyL3rLylyBEJrzgwz0cqlFVaDsWhubND0Shnq8OcBMk 9aLdWHsli84fzPC84SIozcMv9Ct7WltHdWI1xcv481XKs8+GNgH1aEv4eCpF7l2/Tr1r 7n1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=nNqrbcx3hlm6bW5QamgpEPJVajxBuWoj7VtZh9OD3tg=; b=0YC02Zb1K5srGlO8IPAQiD/uQ5w9rZU9VsZ7LVftFRnQT3JbDne5qqTAf5pVSc2svm Qn7d6r3+LkoZH8C9/6Vl9+KvUU8mPqDBOfRrTUYQOvNhXTT18r26SqYe5EWowrkxW95o l0Ywzz9IIeEz1xO/ctuL8vX9Nh227hwGO3GGNUrabKanoNCvR3cS7yLAUvhncvLHepRF 2uGXDX5g4sqs06vGlkN5Z22M3Mi96oD1r1a9tu+tF1kkRUqRZKY5w0oks9W5Tjnhj6i9 EgVxZX3BJcaNpmE/bwqAWdabU6tp4gGVVS+Yn8dvnNOMvCEFj16oYcw3kXk0/glSE1qd FGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CWa8yZuY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="UyvTe/9a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a170906505100b006cf834b30e3si9017155ejk.598.2022.03.07.13.36.32; Mon, 07 Mar 2022 13:36:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CWa8yZuY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="UyvTe/9a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238088AbiCGPIa (ORCPT + 99 others); Mon, 7 Mar 2022 10:08:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239155AbiCGPI2 (ORCPT ); Mon, 7 Mar 2022 10:08:28 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B296C2DE0 for ; Mon, 7 Mar 2022 07:07:33 -0800 (PST) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.34.1