Re: [PATCH v1 1/3] mm/huge_memory: buddy allocator like folio_split()
From: Zi Yan
Date: Thu Oct 31 2024 - 10:04:50 EST
On 31 Oct 2024, at 6:14, Kirill A . Shutemov wrote:
> On Mon, Oct 28, 2024 at 02:09:30PM -0400, Zi Yan wrote:
>> mm/huge_memory.c | 604 +++++++++++++++++++++++++++++------------------
>> 1 file changed, 372 insertions(+), 232 deletions(-)
>
> The patch is really hard to follow. Could you split it into multiple
> smaller patches?
How about these patches instead of this one?
1. add folio_split() backend code, including __folio_split_without_mapping() and __split_folio_to_order();
2. change split_huge_page_to_list_to_order() to use the backend code in 1;
3. add folio_split();
4. remove __split_huge_page() and __split_huge_page_tail().
Best Regards,
Yan, Zi