Re: [PATCH] mm: hugetlb_vmemmap: simplify reset_struct_pages()
From: Miaohe Lin
Date: Fri Aug 19 2022 - 03:43:37 EST
On 2022/8/19 11:55, Muchun Song wrote:
> We can choose to copy three contiguous tail pages' content to the first three pages
> instead of copying one by one to simplify the code and reduce code size from 229 bytes
> to 63 bytes. The BUILD_BUG_ON() aims to avoid out-of-bounds accesses.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
LGTM. Thanks.
Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Thanks,
Miaohe Lin