Re: [PATCH v3 28/54] selftests/mm: move read_file(), read_num() and write_num() to vm_util

Sarthak Sharma
2026-05-06T11:38:27Z

On 4/29/26 2:12 AM, Mike Rapoport wrote:
> From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
>
> These are useful helpers for writing and reading sysfs and proc files.
>
> Make them available to the tests that don't use thp_settings.
>
> While on it make write_num() use "%lu" instead of "%ld" to match
> 'unsigned long num' argument type.
>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
> ---

Looks good to me.

Reviewed-by: Sarthak Sharma <sarthak.sharma@arm.com>