Re: [PATCH v4 2/5] tools/lib/mm: add shared file helpers
From: Andrew Morton
Date: Mon Jun 01 2026 - 20:41:17 EST
On Mon, 1 Jun 2026 11:40:52 +0530 Sarthak Sharma <sarthak.sharma@xxxxxxx> wrote:
> On 5/27/26 7:54 PM, Sarthak Sharma wrote:
> > Move read_file(), write_file(), read_num(), and write_num() out of
> > tools/testing/selftests/mm/vm_util.c into a new shared helper under
> > tools/lib/mm/.
> >
> > These helpers are used by mm selftests today and will also be needed by
> > shared hugepage helpers in subsequent patches. Move them to a generic
> > location so they can be reused outside selftests as well.
> >
> > Keep the helpers exposed to mm selftests through vm_util.h by including
> > the new shared header there, and link the new helper into the
> > selftests/mm build.
> >
> > Add tools/lib/mm/ to the MEMORY MANAGEMENT - MISC entry in MAINTAINERS.
> >
> > Signed-off-by: Sarthak Sharma <sarthak.sharma@xxxxxxx>
> > ---
>
> Hi Andrew!
>
> Can you please fold the below fixlet into patch 2, as suggested by
> Sashiko.
Thanks. Please incorporate this (and the bisection fixlet and anything
else) into a v5 series, after 7.2-rc1?
Because it's late in 7.1-rcX and there is still much reviewing and
testing to be done (please).