Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E957FC433FE for ; Fri, 25 Mar 2022 22:43:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234030AbiCYWpJ (ORCPT ); Fri, 25 Mar 2022 18:45:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234033AbiCYWpC (ORCPT ); Fri, 25 Mar 2022 18:45:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA63120D833 for ; Fri, 25 Mar 2022 15:43:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B968614BD for ; Fri, 25 Mar 2022 22:43:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3698C34110; Fri, 25 Mar 2022 22:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1648248186; bh=CfD5MDIWWOLwhaALCkL0ZSlSqrLG8m29JLNIwLLw2A0=; h=Date:To:From:Subject:From; b=oTKd/6+sgXfl0dXMqAR6c4IdDH7hD96gv74ezAf4alqzKjnDhuBXy2FSR1JdXchIl cO/4NSh4csCv8JnYsvrINjReQ9RzGJLkUZ58F5PYm0sF1le6axOK34jb4gpOGfHZn9 KDjHrjNq8bZ66fnZApgjRxjRxR4Pj+YrDoR7uNpU= Date: Fri, 25 Mar 2022 15:43:06 -0700 To: mm-commits@vger.kernel.org, willy@infradead.org, william.kucharski@oracle.com, songmuchun@bytedance.com, shy828301@gmail.com, peterx@redhat.com, hughd@google.com, linmiaohe@huawei.com, akpm@linux-foundation.org From: Andrew Morton Subject: [merged] mm-huge_memory-make-is_transparent_hugepage-static.patch removed from -mm tree Message-Id: <20220325224306.A3698C34110@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mm/huge_memory: make is_transparent_hugepage() static has been removed from the -mm tree. Its filename was mm-huge_memory-make-is_transparent_hugepage-static.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Miaohe Lin Subject: mm/huge_memory: make is_transparent_hugepage() static 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 Link: https://lkml.kernel.org/r/20220302082145.12028-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song Reviewed-by: Yang Shi Cc: Matthew Wilcox Cc: William Kucharski Cc: Hugh Dickins Cc: Peter Xu Signed-off-by: Andrew Morton --- include/linux/huge_mm.h | 6 ------ mm/huge_memory.c | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) --- a/include/linux/huge_mm.h~mm-huge_memory-make-is_transparent_hugepage-static +++ a/include/linux/huge_mm.h @@ -183,7 +183,6 @@ unsigned long thp_get_unmapped_area(stru void prep_transhuge_page(struct page *page); void free_transhuge_page(struct page *page); -bool is_transparent_hugepage(struct page *page); bool can_split_folio(struct folio *folio, int *pextra_pins); int split_huge_page_to_list(struct page *page, struct list_head *list); @@ -341,11 +340,6 @@ static inline bool transhuge_vma_enabled static inline void prep_transhuge_page(struct page *page) {} -static inline bool is_transparent_hugepage(struct page *page) -{ - return false; -} - #define transparent_hugepage_flags 0UL #define thp_get_unmapped_area NULL --- a/mm/huge_memory.c~mm-huge_memory-make-is_transparent_hugepage-static +++ a/mm/huge_memory.c @@ -533,7 +533,7 @@ void prep_transhuge_page(struct page *pa set_compound_page_dtor(page, TRANSHUGE_PAGE_DTOR); } -bool is_transparent_hugepage(struct page *page) +static inline bool is_transparent_hugepage(struct page *page) { if (!PageCompound(page)) return false; @@ -542,7 +542,6 @@ bool is_transparent_hugepage(struct page return is_huge_zero_page(page) || page[1].compound_dtor == TRANSHUGE_PAGE_DTOR; } -EXPORT_SYMBOL_GPL(is_transparent_hugepage); static unsigned long __thp_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, _ Patches currently in -mm which might be from linmiaohe@huawei.com are