Re: [PATCH] mm/huge_memory: make is_transparent_hugepage() static

From: Muchun Song
Date: Wed Mar 02 2022 - 04:04:58 EST


On Wed, Mar 2, 2022 at 4:22 PM Miaohe Lin <linmiaohe@xxxxxxxxxx> wrote:
>
> It's only used inside the huge_memory.c now. Don't export it and make
> it static. We can thus reduce the size of huge_memory.o a bit.
>
> Without this patch:
> text data bss dec hex filename
> 32319 2965 4 35288 89d8 mm/huge_memory.o
>
> With this patch:
> text data bss dec hex filename
> 32042 2957 4 35003 88bb mm/huge_memory.o
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Thanks.