Messages in this thread | | | Subject | Re: [PATCH] mm: hugetlb_vmemmap: simplify reset_struct_pages() | From | Miaohe Lin <> | Date | Fri, 19 Aug 2022 15:43:28 +0800 |
| |
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@bytedance.com>
LGTM. Thanks.
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Thanks, Miaohe Lin
| |