Re: [PATCH mm-new v8 2/4] mm: khugepaged: refine scan progress number

From: Lorenzo Stoakes (Oracle)

Date: Wed Mar 25 2026 - 14:56:07 EST


On Wed, Mar 25, 2026 at 11:36:50AM -0700, Andrew Morton wrote:
> On Wed, 25 Mar 2026 16:26:12 +0000 "Lorenzo Stoakes (Oracle)" <ljs@xxxxxxxxxx> wrote:
>
> > > hm OK, so what to do. We're OK with teeny -fixes but anything more
> > > substantial we ask for a full resend and I do the heres-what-changed
> > > reply?
> > >
> >
> > Yeah that works for me.
> >
> > > I presently don't fold the -fixes until the very last moment. Could do
> > > that much earlier if it helps anything? Possibly useful to people who
> > > are looking at the series in the mm.git tree.
> >
> > It'd generally be easier imo to have those changes folded, but with something
> > added to the commit message to indicate this so I can know whether or not that
> > was folded in.
>
> I always add a [footer] when folding -fixes, eg:
>
> [sj@xxxxxxxxxx: verify found biggest system ram]
> Link: https://lkml.kernel.org/r/20260317144725.88524-1-sj@xxxxxxxxxx
> Link: https://lkml.kernel.org/r/20260311052927.93921-3-sj@xxxxxxxxxx
> Signed-off-by: SeongJae Park <sj@xxxxxxxxxx>
> Cc: Yang yingliang <yangyingliang@xxxxxxxxxx>
>
> So one can simply chase the link.
>
>
> An unfortunate exception is when the -fix is from myself - I don't take
> the patch from a mailing list so I have no Link: to include, eg
>
> [akpm@xxxxxxxxxxxxxxxxxxxx: fix spello, add comment]
> Link: https://lkml.kernel.org/r/20260220151500.13585-1-rioo.tsukatsukii@xxxxxxxxx
> Signed-off-by: Rio <rioo.tsukatsukii@xxxxxxxxx>
> Cc: Joel Granados <joel.granados@xxxxxxxxxx>
> Cc: Petr Mladek <pmladek@xxxxxxxx>
> Cc: Wang Jinchao <wangjinchao600@xxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>
> But these things are usually quite minor and the precipitating
> discussion can be found by reading the main Link:.
>
> > Maybe just directly squash the commits?
>
> Not understanding this proposal?

I mean instead of having a separate commit for the fix, put that fix into the
patch before it and denote it with a footer as you put above.

I guess that translates to what you do when you rebase and fold the fixes into
commits as you do now anyway.

I don't see any reason not to do that right away, as really it's good to see the
combined change in one go for all practical purposes (if I resend, I'll be
combining work, if I can grab it from the tree and avoid a git rebase -i all the
better).

Thanks, Lorenzo