Re: [PATCH 1/2] selftests/mm: compaction_test: Fix incorrect write of zero to nr_hugepages

From: Andrew Morton
Date: Sun May 19 2024 - 20:00:35 EST


On Wed, 15 May 2024 15:06:32 +0530 Dev Jain <dev.jain@xxxxxxx> wrote:

> nr_hugepages is not set to zero because the file offset has not been reset
> after read(). Fix that using lseek().
>

Please fully describe the runtime effects of this bug.