Re: [PATCH] selftests/mm: Drop redundant open() in mprotect_tests()
From: SJ Park
Date: Mon Aug 17 2026 - 20:30:33 EST
On Mon, 17 Aug 2026 16:06:16 +0800 Hongfu Li <hongfu.li@xxxxxxxxx> wrote:
> From: Hongfu Li <lihongfu@xxxxxxxxxx>
>
> Remove duplicate open() for local pagemap_fd in mprotect_tests() that
> shadows the global pagemap_fd already opened in main(). The local fd
> is never used in the function.
Nice catch!
>
> Signed-off-by: Hongfu Li <lihongfu@xxxxxxxxxx>
Reviewed-by: SJ Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]