Re: [External] Re: [PATCH v14 8/8] mm: hugetlb: optimize the code with the help of the compiler

2021-02-05 Thread Muchun Song
On Fri, Feb 5, 2021 at 5:09 PM Oscar Salvador wrote: > > On Thu, Feb 04, 2021 at 11:50:43AM +0800, Muchun Song wrote: > > We cannot optimize if a "struct page" crosses page boundaries. If > > it is true, we can optimize the code with the help of a compiler. > > When free_vmemmap_pages_per_hpage()

Re: [PATCH v14 8/8] mm: hugetlb: optimize the code with the help of the compiler

2021-02-05 Thread Oscar Salvador
On Thu, Feb 04, 2021 at 11:50:43AM +0800, Muchun Song wrote: > We cannot optimize if a "struct page" crosses page boundaries. If > it is true, we can optimize the code with the help of a compiler. > When free_vmemmap_pages_per_hpage() returns zero, most functions are > optimized by the compiler.

Re: [PATCH v14 8/8] mm: hugetlb: optimize the code with the help of the compiler

2021-02-03 Thread Miaohe Lin
On 2021/2/4 11:50, Muchun Song wrote: > We cannot optimize if a "struct page" crosses page boundaries. If > it is true, we can optimize the code with the help of a compiler. > When free_vmemmap_pages_per_hpage() returns zero, most functions are > optimized by the compiler. > > Signed-off-by:

[PATCH v14 8/8] mm: hugetlb: optimize the code with the help of the compiler

2021-02-03 Thread Muchun Song
We cannot optimize if a "struct page" crosses page boundaries. If it is true, we can optimize the code with the help of a compiler. When free_vmemmap_pages_per_hpage() returns zero, most functions are optimized by the compiler. Signed-off-by: Muchun Song --- include/linux/hugetlb.h | 3 ++-