linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
To: Israel Batista <linux@israelbatista.dev.br>
Cc: David Hildenbrand <david@redhat.com>,
	Omar Sandoval <osandov@osandov.com>,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	linux-debuggers@vger.kernel.org
Subject: Re: [PATCH] mm: Convert memory block states (MEM_*) macros to enum
Date: Tue, 28 Oct 2025 19:13:37 +0000	[thread overview]
Message-ID: <02847a0f-600f-4cad-b7e3-371fa98049ed@lucifer.local> (raw)
In-Reply-To: <7a46f3cf-3256-4179-8ac6-25223908480c@israelbatista.dev.br>

On Tue, Oct 28, 2025 at 07:06:00PM +0000, Israel Batista wrote:
>
>
> On 10/28/25 13:34, Lorenzo Stoakes wrote:
> > On Mon, Oct 27, 2025 at 11:53:57PM +0000, Israel Batista wrote:
> > >
> > >
> > > On 10/27/25 16:46, Lorenzo Stoakes wrote:
> > >
> > > >
> > > > So why are we naming the type... does drgn require it?
> > > >
> > >
> > > It doesn't need to be named, but as David pointed out, we could find
> > > where these values are being used and replace the type with the proper
> > > enum. I quickly grepped the codebase and it seems doable, I'm probably
> > > adding these changes to the next version of this patch since there are
> > > some things to fix anyway.
> >
> > I mean we're getting a little out of scope here but fine, if these are not
> > in fact used as flags, I don't mind, just remove the silly 1 << x values
> > while you do it.
>
> Could you also point me to what tree is preferred to base the patches
> for the mm subsystem, please? There are differences between linux-next
> and the current version of mainline regarding these values.
> (MEM_PREPARE_OFFLINE and MEM_FINISH_OFFLINE are being removed on
> linux-next).
>
> So I would appreciate if you could indicate what tree is the best to
> base my changes, as I'm not that familiar with this subsystem.

Sure it's not at all obvious atm (mea culpa mm :)

So the tree is at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/

The best branch is mm-new, however this is the 'crazy' branch where _every
ongoing series_ that isn't found to be broken is taken as a testing ground and
base point for development to avoid conflicts.

I tend to base all my series on mm-new, as series must apply against it to be
taken there of course (though Andrew may resolve simpler conflicts).

The more stable ground (despite the name) is mm-unstable, which is everything
that has sat in mm-new long enough to be likely to be sent to Linus for the next
release, and it's mm-unstable that gets set to linux-next.

_Generally speaking_ your series should apply against both. If it doesn't, I'd
base it on mm-new.

So in general TL;DR mm-new is the way to go.

Cheers, Lorenzo


  reply	other threads:[~2025-10-28 19:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-26 16:22 Israel Batista
2025-10-27  9:29 ` David Hildenbrand
2025-10-27 18:15   ` Omar Sandoval
2025-10-27 19:16     ` David Hildenbrand
2025-10-27 19:46     ` Lorenzo Stoakes
2025-10-27 23:34       ` Omar Sandoval
2025-10-28 16:06         ` David Hildenbrand
2025-10-28 16:33         ` Lorenzo Stoakes
2025-10-28 17:40           ` Omar Sandoval
2025-10-27 23:53       ` Israel Batista
2025-10-28 16:34         ` Lorenzo Stoakes
2025-10-28 19:06           ` Israel Batista
2025-10-28 19:13             ` Lorenzo Stoakes [this message]
2025-10-27 18:18 ` Omar Sandoval
2025-10-27 19:17   ` David Hildenbrand
2025-10-27 23:41   ` Israel Batista
2025-10-28  6:51     ` Omar Sandoval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02847a0f-600f-4cad-b7e3-371fa98049ed@lucifer.local \
    --to=lorenzo.stoakes@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=linux-debuggers@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@israelbatista.dev.br \
    --cc=osandov@osandov.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox