Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp660989pxm; Wed, 2 Mar 2022 06:08:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1SxKOJ2k5EMvZJ938HZu6i/0Ck5H+ILEWWbApsDN4h8QMgD8rujsXrhGleH4wuIwf0srC X-Received: by 2002:a17:906:d7aa:b0:6cf:1fb3:2986 with SMTP id pk10-20020a170906d7aa00b006cf1fb32986mr23341010ejb.594.1646230136074; Wed, 02 Mar 2022 06:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646230136; cv=none; d=google.com; s=arc-20160816; b=OPn7eIsp7TK1so3BnSlSr9gyHOURFR3ua8pzy5CdN+y7LpcYMol5pWmbzX7u7Nwg6C jiIKtV0iRu4t+VK9iA5Mdh1IaONmzn269UiXsKznlY23SBCJkeHpzmd++mN/ni1bLWWk LGdz2hsAoOFVXXjT+i/pHQEetYP59RIGfTwmTiFhD64RN7Sugynkae2Lrq40azhaX3nb czGoLD4wJ3OUhuIAIqQw6+Pc/bDQaOVPClsyRgUAxgtr78sNh/sxhoAqL4ImWNlx4ob9 2WOHNsSLEfuDQSFrOEQNCH+KC5vkkMhnhsxtQGBFsT8eXK+HN04AcAtPQZZykeDtXyvf vlkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ajh49HUN2jOeJwe8QVjB+EI+fly4//JbkBLG+IQiIPU=; b=ctd0OdxDwkyZbH7lzGfgenEatyOddr3U1C1S5KbQGmdcWlRcMkNTURDEiqylrT6f1J OkjrRhBPd3hICYn3IXhmW3TB9zEJqcPjLqfs1H8s4+6CGJ2CRCpuvUvEOn2FOEhAuFg9 uAC12cFM9FfMqKtEnlnsSV7KZk5x74X2t05yCZ/u2CvGaDCFZ/4dM1kKM7cwX5/IVIG/ u927VkvFrIl9bnjgSnQsMKWtc9FF3l7scy9kydJPYIxr7QEIWB3lGLaStltUqqsgNxHO p6gjLK74ibk1df7Y35hr/Q38QWDY5byAQSBGhy/BuTMJbtzS63w1sQMk8TkO08XRMsmQ U5WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=puSAp0DD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd9-20020a1709076e0900b006d776ad4098si2417938ejc.521.2022.03.02.06.08.32; Wed, 02 Mar 2022 06:08:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=puSAp0DD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235698AbiCBJFh (ORCPT + 99 others); Wed, 2 Mar 2022 04:05:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbiCBJFf (ORCPT ); Wed, 2 Mar 2022 04:05:35 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4135BA774 for ; Wed, 2 Mar 2022 01:04:52 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-2d07ae0b1c4so9212767b3.11 for ; Wed, 02 Mar 2022 01:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ajh49HUN2jOeJwe8QVjB+EI+fly4//JbkBLG+IQiIPU=; b=puSAp0DDhyTfJTMteggoCfmaroqG9Bd83woqT1+ecwVnSMOz4NOAI1hVlrA7EJ0uu6 rd0AZgCJDKrlhh4kb7QAV8uMet94acVR5/2WM4Atp3deKT1wY7j+ELAfHGaNXd4mMDJK BajEn+yE8vV1d9t4RFsPrgNkOOARDMlQugQh8J5J6EHpGtrorGA168s40KWDERwNgChA 9UEUUK+b8skWpe8reAeGLpXgj/lGjLreCMfXVc3KBXCp9WzMNe1DBKJqIWTbiDXKvZle +NYb6VQvNzFCmSrfZ6FGtOkfyshQzET/w8Efzz7pT0D2dMiePR+MLH2F5caOgC98Sqvy LVxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ajh49HUN2jOeJwe8QVjB+EI+fly4//JbkBLG+IQiIPU=; b=Ndv7bhM+gL5Fhpd2eRc6SGPI7uu2SyBtUbegbS5J4vJdLm3GGPjZWb+n9fVWPUZUIx wn9wxhosqwmL5drGrYPwCtKm56uSS0ZsjreQoMqyU59+LOoSmrpWqC5AlhpRFdzgndRE yRX2AFddWr8KM73WM7Y24w1JOKnXraagupNJ1kfXAaGJ9u/qh0UkoFRvFLKnvwVoqmiJ XWq+6CKRQxtTDeS3xcT+HZo3t6h6JUGNmJG49Idqzm34uxUIVgAI/Uh/hrR70sgicPgx vuOWZri2/T6qDD9U+d9MemQfIrFBO4g3lV9V8BYtXL5mYILMb1mEvNP4S7N6I2ldLZDI 921Q== X-Gm-Message-State: AOAM530PQiYnKAVspTuAaeZfSzJuO8O7WlVq7rKTGABf8KP0pORtpUg1 nOuiArPh1tpOdtKfOUJt1nybef0Y0RBjI51GTy3/rQ== X-Received: by 2002:a0d:c3c1:0:b0:2db:e196:74c with SMTP id f184-20020a0dc3c1000000b002dbe196074cmr6592558ywd.35.1646211892096; Wed, 02 Mar 2022 01:04:52 -0800 (PST) MIME-Version: 1.0 References: <20220302082145.12028-1-linmiaohe@huawei.com> In-Reply-To: <20220302082145.12028-1-linmiaohe@huawei.com> From: Muchun Song Date: Wed, 2 Mar 2022 17:04:15 +0800 Message-ID: Subject: Re: [PATCH] mm/huge_memory: make is_transparent_hugepage() static To: Miaohe Lin Cc: Andrew Morton , Matthew Wilcox , Yang Shi , william.kucharski@oracle.com, Hugh Dickins , Peter Xu , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 2, 2022 at 4:22 PM Miaohe Lin 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 Reviewed-by: Muchun Song Thanks.