Re: [PATCH v7 2/6] tools/lib/mm: add shared file helpers
From: Mike Rapoport
Date: Mon Aug 24 2026 - 03:59:58 EST
On Thu, 13 Aug 2026 23:42:26 +0530, Sarthak Sharma <sarthak.sharma@xxxxxxx> wrote:
> Move read_file(), write_file(), read_num(), write_num() and
> write_num_ignore_einval() 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.
>
> [...]
Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
--
Sincerely yours,
Mike.