Re: [PATCH 10/10] mm: replace mm->flags with bitmap entirely and set to 64 bits

Lorenzo Stoakes
2025-08-26T13:23:48Z

On Tue, Aug 26, 2025 at 03:14:46PM +0200, David Hildenbrand wrote:
> On 12.08.25 17:44, Lorenzo Stoakes wrote:
> > Now we have updated all users of mm->flags to use the bitmap accessors,
> > repalce it with the bitmap version entirely.
> >
> > We are then able to move to having 64 bits of mm->flags on both 32-bit and
> > 64-bit architectures.
> >
> > We also update the VMA userland tests to ensure that everything remains
> > functional there.
> >
> > No functional changes intended, other than there now being 64 bits of
> > available mm_struct flags.
> >
> > Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
> > ---
> > include/linux/mm.h | 12 ++++++------
> > include/linux/mm_types.h | 14 +++++---------
> > include/linux/sched/coredump.h | 2 +-
> > tools/testing/vma/vma_internal.h | 19 +++++++++++++++++--
> > 4 files changed, 29 insertions(+), 18 deletions(-)
>
> The vma test code duplication is still making me sad ... but I'll get over
> it I'm sure.

Yeah ;) I do want to work on seeing if I can do something more about this in
future as I intend to do more with those tests but all time-dependent obviously!

>
> Acked-by: David Hildenbrand <david@redhat.com>

Cheers!

>
> --
> Cheers
>
> David / dhildenb
>