2023-06-02 03:31:46

by Muchun Song

[permalink] [raw]
Subject: Re: [PATCH 1/2] mm/hugetlb: Use a folio in copy_hugetlb_page_range()



> On Jun 2, 2023, at 09:54, Peng Zhang <[email protected]> wrote:
>
> From: ZhangPeng <[email protected]>
>
> We can replace five implict calls to compound_head() with one by using
> pte_folio. However, we still need to keep ptepage because we need to know
> which page in the folio we are copying.
>
> Suggested-by: Matthew Wilcox (Oracle) <[email protected]>
> Signed-off-by: ZhangPeng <[email protected]>

Reviewed-by: Muchun Song <[email protected]>

Thanks.