Re: [PATCH v1 2/3] mm/memfd_luo: remove unnecessary memset in zero-size memfd path
From: Pratyush Yadav
Date: Fri Mar 20 2026 - 06:09:16 EST
On Thu, Mar 19 2026, Chenghao Duan wrote:
> The memset(kho_vmalloc, 0, sizeof(*kho_vmalloc)) call in the zero-size
> file handling path is unnecessary because the allocation of the ser
> structure already uses the __GFP_ZERO flag, ensuring the memory is
> already zero-initialized.
>
> Signed-off-by: Chenghao Duan <duanchenghao@xxxxxxxxxx>
Reviewed-by: Pratyush Yadav <pratyush@xxxxxxxxxx>
[...]
--
Regards,
Pratyush Yadav