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

From: Sarthak Sharma

Date: Wed May 06 2026 - 07:42:02 EST




On 4/29/26 2:12 AM, Mike Rapoport wrote:
> From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> ---

Looks good to me.

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