Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp463905pxx; Thu, 29 Oct 2020 06:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi32RAvSJy7JjE+0aIFVYCKb7n31fRuGvBB22bCScr4hyUBtOQ9+ghkjZSDUABEk5wONoM X-Received: by 2002:a05:6402:6ca:: with SMTP id n10mr4171485edy.314.1603979481588; Thu, 29 Oct 2020 06:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603979481; cv=none; d=google.com; s=arc-20160816; b=c4mdJwVx3bT6MTagsytNTE8AqiZeIveBSAr1XOOdFUCvy/Y4su94QTR+E4x6dKVnZX gCNQ7XZte9yM0KA4E//h7uy0r8brDUyfFqomp6NooZEV0oWyE58M2SSgkKmNf67bpLeQ F4WguIMgJl0K76omfCA2qhpuQnE9SQfxwC2sFoMW27gZdwL9BJ4d8r0QLEOVC3P/1eym 1dnqP/7x4ps2Kmdaym4sRpIZgUnMOI4vx+/99d2dcAEkaAMRLKZSVJaZQVi+cxU37Zvu ZaUMQpjdGQc773RTx3ld7DffdUDlaCfzdkioWy0qk5ngTlQF4ESLwzgL8IiiiPbjFFF7 8eNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aaIMvQUgy5GfKnfOz1OmQc/tQFUJWmKT+5EU7lJnpIg=; b=r5YIvS276YGURTkf0R9q35sKnMqQfBvKSPj6ZiLrQK23ev2/uNiJCp47DvRudX3+Ry 8XstL36bqIxKClHmC7O9mmYl+bnSZYXO/Wc3GI4PZBksr6QSOnH78vmFDnGafkKszJ31 VvBBE/7kPdM9Y6sZjItJKEznMdTFFrFSk6OGT5R4F2cFdjdSKsKG2fOBjIsBNLEGMdfW KAU/HgU735eSZUR1bv9VJ7OOrn3hoqX+hkSnL8HGUEyfB8t91AEyJSb04VitdQq0bIB9 uNX1qQeHCSKTvc8Bkzmw5/XUTnW4CBjd2Cmkn24Rh7qlyFrv9aDM8WnZc8POyy2A45gt 4YFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=Rkh4mNNW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si1759950ejw.238.2020.10.29.06.50.58; Thu, 29 Oct 2020 06:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=Rkh4mNNW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727747AbgJ2NtX (ORCPT + 99 others); Thu, 29 Oct 2020 09:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727732AbgJ2NtU (ORCPT ); Thu, 29 Oct 2020 09:49:20 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3FC3C0613D3 for ; Thu, 29 Oct 2020 06:49:20 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id v18so3082872ilg.1 for ; Thu, 29 Oct 2020 06:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aaIMvQUgy5GfKnfOz1OmQc/tQFUJWmKT+5EU7lJnpIg=; b=Rkh4mNNWCGTBaZ0kV3h45r9aCfQYTEYCWwhRTXhZukO72CfLpaYAPvSKsRefVLAzBS XY2eapgWAFWjyUUoH7y9nXTAJxwWC0HpyKLRREWAnnPufo2nFhCVDJwAxmSRiG1SmYRt 6de9omlzVlZi/CoRpBC8oLf0Zij5KZIx0kMdZbchDA9917NbYrk8f8zEeYVWy2US9YjA rcbo+L01DJPTZi0FIodyReVMGdqEpBmGzPA6I4C628VHdPh3HjvJyu+YvqWL6rvh+ovW n34QeAf/1/kiOVFLMOiZqY0/zzh8MIaom8wOQ4Bn/zCvhHIA8fL2jeT3TJy7SmFibzxX yETg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aaIMvQUgy5GfKnfOz1OmQc/tQFUJWmKT+5EU7lJnpIg=; b=lZIX/uGfZM+SCT+WA4UrPPPFSCqnBQK+423AmR3amjrc1i4zsEuMWfvZ2EKQJj0csK 4HdBrp3bwnkgU9SvlOOgKqBEjWfsxXtURYVl7AGFjzgIMqdZSBB8Cdc34qyLblGsdyTO yvlvu4UWAh/UsHM5ATBpYfI7aGHiQ5ZykGXt+pBOO3nKa9leenf0UgXfFyTXwgjgJ9Dq oTcvKK6E6Iepx1ApsRnJ9dVNXxzIZgcsEgLUTZEXF9PCRIvDb3ESG4GcpCBSSOXFVLM0 qkZRW/eaAsq8UpdbtaTPqj2pdYJo5lW7y3lM8s6d9ocP0WNEs7f/KwYoLdrhTdQSeht1 YckA== X-Gm-Message-State: AOAM533FMIbjktQnkcrrX+zPMlhMVmTrE59Zf25ke5dXASinUFitOjC5 YEhP+eJdr1YWSYkNci4MOOXAJg== X-Received: by 2002:a05:6e02:ca9:: with SMTP id 9mr2947150ilg.96.1603979360131; Thu, 29 Oct 2020 06:49:20 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:536c]) by smtp.gmail.com with ESMTPSA id n84sm2881225ild.16.2020.10.29.06.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 06:49:19 -0700 (PDT) Date: Thu, 29 Oct 2020 09:47:36 -0400 From: Johannes Weiner To: Alex Shi Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com Subject: Re: [PATCH v20 03/20] mm/thp: move lru_add_page_tail func to huge_memory.c Message-ID: <20201029134736.GD599825@cmpxchg.org> References: <1603968305-8026-1-git-send-email-alex.shi@linux.alibaba.com> <1603968305-8026-4-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603968305-8026-4-git-send-email-alex.shi@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 06:44:48PM +0800, Alex Shi wrote: > The func is only used in huge_memory.c, defining it in other file with a > CONFIG_TRANSPARENT_HUGEPAGE macro restrict just looks weird. > > Let's move it THP. And make it static as Hugh Dickin suggested. > > Signed-off-by: Alex Shi > Reviewed-by: Kirill A. Shutemov > Acked-by: Hugh Dickins > Cc: Andrew Morton > Cc: Johannes Weiner > Cc: Matthew Wilcox > Cc: Hugh Dickins > Cc: linux-kernel@vger.kernel.org > Cc: linux-mm@kvack.org Acked-by: Johannes Weiner