From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3B540137923 for ; Sun, 26 Jul 2026 10:17:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785061024; cv=none; b=h4c4L5HNs/H4cGxAPLIOulZnWhJb2b4Pdme/h8AvS3qgE9FmopYPaI+N/8ZNLeG6AJH05zktkvuuS8kVAO1fIismz9PW2PLpdItBGIag8hQEBqo2LLZYC1ntAsqCCR2D6tg8g4z0ZseSebgsPayzhiO56BfZtSISaFwY/LD3rto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785061024; c=relaxed/simple; bh=vAKPZFM030kyficVgdRldDNx9NzdB+FFp4idQp8JjSQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nFYk6xXjpXjxVaxdbyEXCVS+PoHTqmg5UR4dEcm/SAQsmNVtYuBwtSeL59rxZd2dbU/CNdFMASyQi31ZhrFRzlGToADQ5DXYlJsq2UtBgXwuyMwk8R7JmV88op370cG6yK8FGdFX3PhYI1Gcdb4/Y5aVvPXo1ri9uDowqEk3baw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dD/Bqvr0; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dD/Bqvr0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A2021F000E9; Sun, 26 Jul 2026 10:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785061022; bh=fDOZqeNkjdo8vMXioiDYc0luD1S039f5+FXxpDb5Kvw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=dD/Bqvr0rOFvGdTmwOnN0Ba4hfE/9xY+Vx68zJZG+goUce76b2AtfJplLuD4ANVTB l53gHeJbKkexYtCpJ7KXg+EU/Y6Ugu3N2wqeofwkp/JWJbQXMo1/dwOvYjQXMo79yZ CuvRYHaZ2DW24R7jpNNn0dicF3QlBpRkc9jgQoLQRXI/+M4Js2ZPVDRdtEygN1+LDo eNBh5lU21E+LC5PCdYTicTNkDL5K+ARoo9DkLeWPVahC8ldzw0bzvkmuq2Y71XoB4C vDKKcp572kgzzODVlqYz7gYPoXpvwkGPA8grfevTZ+reVV8DQYI4T8wOkuPzFC3uRT glCZUmU4Kr8rw== Date: Sun, 26 Jul 2026 13:16:54 +0300 From: Mike Rapoport To: Pratyush Yadav , Andrew Morton , David Hildenbrand Cc: Pasha Tatashin , Alexander Graf , Muchun Song , Oscar Salvador , Jason Miu , Jork Loeser , kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song Subject: Re: [PATCH v4 16/21] mm/mm_init: simplify deferred_free_pages() migratetype init Message-ID: References: <20260725172133.4018491-1-pratyush@kernel.org> <20260725172133.4018491-17-pratyush@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260725172133.4018491-17-pratyush@kernel.org> On Sat, Jul 25, 2026 at 07:21:16PM +0200, Pratyush Yadav wrote: > From: Muchun Song > > deferred_free_pages() open-codes two loops to initialize the pageblock > migratetype for a range of pages. > > 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). > > 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) > --- > > Notes: > This patch is taken from Muchun's series [0]. The patch as of today is > in mm-unstable. @Andrew, 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 :( 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 :) How does that sound to you? > [0] https://lore.kernel.org/linux-mm/20260612035903.2468601-6-songmuchun@bytedance.com/ > > mm/mm_init.c | 19 ++++++++----------- > 1 file changed, 8 insertions(+), 11 deletions(-) -- Sincerely yours, Mike.