From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD07613E41A for ; Mon, 27 Jul 2026 03:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785123839; cv=none; b=fTUI0vOxFxbuujqJqvk7xM5M60KVfgjzPBcli9Z9hiVuVHvYGNJIJmlJGnWKRAZAb51GijE58JasLE01cy1wbauTQIghsNmH2kunGg7zjt+qcgzhHI/JUoEZfgImrsyBUHfPTknyIdgnP+P4mczyWGO9SCv3BrxOGegEtWLkusE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785123839; c=relaxed/simple; bh=F++5J9IbHTwpklUTnsGAP5v5EdYyxNyAiBGp8Yh5F9g=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=baxWx5JoGjSDO8T8xaQitGuJ/riLVCu3Dtf8ZBGUzoiACc2xuXz6KMUwKLGOTYVQ0tmLv3ko9B0OQkW2j3QqjdEC5rTt7XrTDh9zmXycalm+ECrYk0rOTAhHo0EWH/x+8Jq6t3EvxNVkY1xDOkOc3NRboyOtdCUMhXNbg/KxqEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=aRf46QzB; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="aRf46QzB" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1785123834; 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: in-reply-to:in-reply-to:references:references; bh=TJ8JOsuNS9FMz8gDaGLvGpLiuqBJLsoGeu7gSP3kDic=; b=aRf46QzBuKyHK/EkkiGdLyqu3uYLO/+lJA2GEDL1PfdcBnFNIg1VpQoyyJOnJaFRz3YSba fkneCqeuAliZ5vn0sVTXpPF6Y5NRRSVUsjamfFhcO/DMRsPftOu9WOtC8Cx77uIWmet/RB TdRx9ZazWk2gsfdKm7lB6eFaIox1tuo= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH v4 16/21] mm/mm_init: simplify deferred_free_pages() migratetype init X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260726202522.e55861cc87fc3e0c6d030e1f@linux-foundation.org> Date: Mon, 27 Jul 2026 11:43:31 +0800 Cc: Mike Rapoport , Pratyush Yadav , David Hildenbrand , Pasha Tatashin , Alexander Graf , Oscar Salvador , Jason Miu , Jork Loeser , kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song Content-Transfer-Encoding: quoted-printable Message-Id: <92E24479-07A8-4998-9607-87420A8BE04E@linux.dev> References: <20260725172133.4018491-1-pratyush@kernel.org> <20260725172133.4018491-17-pratyush@kernel.org> <20260726202522.e55861cc87fc3e0c6d030e1f@linux-foundation.org> To: Andrew Morton X-Migadu-Flow: FLOW_OUT > On Jul 27, 2026, at 11:25, Andrew Morton = wrote: >=20 > On Sun, 26 Jul 2026 13:16:54 +0300 Mike Rapoport = wrote: >=20 >> On Sat, Jul 25, 2026 at 07:21:16PM +0200, Pratyush Yadav wrote: >>> From: Muchun Song >>>=20 >>> deferred_free_pages() open-codes two loops to initialize the = pageblock >>> migratetype for a range of pages. >>>=20 >>> Replace them with pageblock_migratetype_init_range() to remove the >>> duplication and make the code clearer (Note that = deferred_free_pages() may >>> be called from atomic context). >>>=20 >>> Link: = https://lore.kernel.org/20260612035903.2468601-6-songmuchun@bytedance.com >>> Signed-off-by: Muchun Song >>> Acked-by: Mike Rapoport (Microsoft) >>> Acked-by: Oscar Salvador >>> Signed-off-by: Pratyush Yadav (Google) >>> --- >>>=20 >>> Notes: >>> This patch is taken from Muchun's series [0]. The patch as of = today is >>> in mm-unstable. >>=20 >> @Andrew, >>=20 >> It looks like it'll take some time for this patch to get into = mm-stable so >> we can't base this work on a branch in the mm tree :( >=20 > I didn't know anyone was using mm-stable :( >=20 > Series is adequately reviewed and is near head-of-queue so I can move > it into mm-stable a few days hence if that helps? >=20 >> I'd like to expose the KHO scratch extension to linux-next ASAP so = I'm >> inclined to take this patch as a part of this series and live for a = while >> with a duplicated commit in linux-next. Once this patch would be in >> mm-stable we can rebase kho-scratch work on top of mm-stable and = hopefully >> there will be enough time for it to live in linux-next so that Linus = won't >> get angry at us :)=20 >>=20 >> How does that sound to you? >=20 > That's fine - let me know what you choose to do and I'll adapt to it. >=20 > An unknown (to me) is whether Muchun's series "mm: Refactor bootmem > gigantic hugepage allocation, v4" still works with this patch removed. = Everything > applies OK for what that's worth. Hi Andrew, I'd like to confirm that this is a completely independent cleanup patch, so it can be merged on its own. Thanks.