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 3D9113CB55D for ; Mon, 27 Jul 2026 22:53:57 +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=1785192838; cv=none; b=X/SNSRv37KKFmagLJ1HbT2J2pInH8LzIzTcKDex+rFFS9fD8E3j38yN1aEKH4E9nBDaCgp99x1MxLCaIrUDQFsMW5U9lXuHM4nn876XnSNV9UKcZI3JByWIimR0Kh2SpnnmbteBzvFlhHovQjSn3u+rUMVpjt7q2ytycfHRJTYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785192838; c=relaxed/simple; bh=sjn1/gmgVv/8TYSRnL44ODXJoxfrCr8WTfgIHKDy+Fo=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=rvZDKwRWDbRA+5VWVwl5shKkf01Tmhvmdikpbxz5cNsDF9Fcn1vBtpPwlSEaXroK7XPbaxMLt49ScrlWJ5l75oXTm2VRWzYIRIlq/S4/LOvRUZ9cIM+crSevw5sApVPoV1hf4nUTWGD1MsRO2OhDDFPrBzObzAedwbrtnFvGWWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=drUnlP/g; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="drUnlP/g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 830781F000E9; Mon, 27 Jul 2026 22:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1785192837; bh=gBx1sqPOi/sYxMgcMoA4vUh2Ha5IO4euZ+QG5rwNAXI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=drUnlP/gTpTNJGf3kSPuQsBGCK6KUDTIbN8ppYNrzSy4mH9fLmZBTM2YFav9YRT7A umgV2laiKooA58w9Td7kAuFj003uCbfsViLfF/Wp7D5bsBXTJj9XKBn+mZzOLmPnju NPUMhrljboSYiUJ+cWnZ8RkXY9ebJit2KojBiuGY= Date: Mon, 27 Jul 2026 15:53:56 -0700 From: Andrew Morton To: Mike Rapoport Cc: Muchun Song , 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 Subject: Re: [PATCH v4 16/21] mm/mm_init: simplify deferred_free_pages() migratetype init Message-Id: <20260727155356.2b2d39657d1154f9400e69ea@linux-foundation.org> In-Reply-To: References: <20260725172133.4018491-1-pratyush@kernel.org> <20260725172133.4018491-17-pratyush@kernel.org> <20260726202522.e55861cc87fc3e0c6d030e1f@linux-foundation.org> <92E24479-07A8-4998-9607-87420A8BE04E@linux.dev> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Mon, 27 Jul 2026 13:08:18 +0300 Mike Rapoport wrote: > On Mon, Jul 27, 2026 at 11:43:31AM +0800, Muchun Song wrote: > > > > > > > On Jul 27, 2026, at 11:25, Andrew Morton wrote: > > > > > > On Sun, 26 Jul 2026 13:16:54 +0300 Mike Rapoport wrote: > > > > > >> 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 didn't know anyone was using mm-stable :( > > Maybe nobody uses it because it's not really stable? ;-) Well it's supposed to be. Rebases are rare. The larger problem is that it doesn't contain anything until -rc5ish because we haven't stabilized anything yet! > > I'd like to confirm that this is a completely independent cleanup patch, > > so it can be merged on its own. > > That's great, thanks for confirming! > > Then I think the easiest would be to take "mm/mm_init: simplify > deferred_free_pages() migratetype init" via liveupdate tree. No probs, I'll drop it when Mark reports the duplicate.