Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp938819ybh; Mon, 13 Jul 2020 05:23:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+/qAcB/zOZQ8fxkBiOP9kua3njTDoDeHdyk+0gM2XJiKwc8Vml6pViUttiixBxrGPW4n6 X-Received: by 2002:a50:8f83:: with SMTP id y3mr49414837edy.257.1594643028385; Mon, 13 Jul 2020 05:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594643028; cv=none; d=google.com; s=arc-20160816; b=bOLEd4tQzdrhmP5FFvEdhWu6j6wYYw6B6l2F0CFSk24yeAZdNaQFmUq/576kePikZh cVwMHzkXPXEWjJp5QeY7nk6oQHkNFuZ++0GmQw38TK3ku+wCqxoxDqnOgMhw0/pPHnTV yqLIeo7xH0oGQCh/w1u8vn0u3Yr1QN9xBU6yQeqEvVAVKKYUbsiadn/igFa+cOPiLf9E SrpUsO52dMtmE+cux8fyzxedaHdC7ZeEk/zB4qEw75DXrkAjR/Bd8mnZOfK+mnrJxJ4A Vx11htd41ugP2rJnPgfRqic2WqMgon4BvpHBVYbYX2a4LfsHIQFizYrammhLbGQYTsv+ H8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:dkim-signature; bh=TwoQ8bDC2XXe2mOguI1vCZOlb/uARXgWALhiWYIJob0=; b=Qmuwrlz79PchnLLZ6oNK4jVSK2AxSot5Cuq7iNOXXW+4u9n2cfU+M7Zg3Nn+rzFUNR SD+yL+i5quzRp5bAE0X7aIFDNvdL1etLjKXOd0k6GCo/eRQDZkbbj/vqN1yRKUXqD+F9 psbu12t3vg59Zh9Lnmi5FeAKRmqKRZBBgMrdif4o2lP4sMXozgqKU/jJS+YNoZGM7nuJ JDwL1yv7fRSHjS6O1qk1UTXWBP9UkBHx6NFifPeRn3qG33qGO7yjmykt0m4OsrKdGfBk bPn9sBtbIe/ls9oxOfPB21UQE2IjxeJMEo6v+nM1qyBXFpJKiutmM7eYmL9T3sg06lxe idyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=oxMYpFiX; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si8831662edx.297.2020.07.13.05.23.24; Mon, 13 Jul 2020 05:23:48 -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=@amazon.com header.s=amazon201209 header.b=oxMYpFiX; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729543AbgGMMXD (ORCPT + 99 others); Mon, 13 Jul 2020 08:23:03 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:18062 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgGMMXD (ORCPT ); Mon, 13 Jul 2020 08:23:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1594642983; x=1626178983; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=TwoQ8bDC2XXe2mOguI1vCZOlb/uARXgWALhiWYIJob0=; b=oxMYpFiXp+a6PMcba4654bKBdZd2uOq8blBEdDz6OK2bx5Sl9lkCbiPN P6TnxTpimqkOKdEryqEklHz1dH6MhnatZlS+YwcbpGzPOKPzbZXvBBnFx /YCqrKlYOShY3bSS/nlkJRHcgyB4wUAVUmwYsnwDVeG+hrOr7MuqFQ2n+ g=; IronPort-SDR: +PigRIvLE03mwAyDt7JldlA+KMu5Cs8Tlez+JFwI3u3KzRMYY5FIriCJixMJRrTFgRcJ0OKGGU Mb4S/MyhrDvg== X-IronPort-AV: E=Sophos;i="5.75,347,1589241600"; d="scan'208";a="42967769" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-f273de60.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 13 Jul 2020 12:23:02 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1d-f273de60.us-east-1.amazon.com (Postfix) with ESMTPS id 52AADA237C; Mon, 13 Jul 2020 12:22:50 +0000 (UTC) Received: from EX13D31EUA004.ant.amazon.com (10.43.165.161) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 12:22:50 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.65) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 12:22:33 +0000 From: SeongJae Park To: Mike Rapoport CC: SeongJae Park , , "SeongJae Park" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: Re: [PATCH v18 01/14] mm/page_ext: Export lookup_page_ext() to GPL modules Date: Mon, 13 Jul 2020 14:21:43 +0200 Message-ID: <20200713122143.25493-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200713120842.GA707159@kernel.org> (raw) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.65] X-ClientProxiedBy: EX13D41UWC001.ant.amazon.com (10.43.162.107) To EX13D31EUA004.ant.amazon.com (10.43.165.161) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jul 2020 15:08:42 +0300 Mike Rapoport wrote: > Hi, > > On Mon, Jul 13, 2020 at 10:41:31AM +0200, SeongJae Park wrote: > > From: SeongJae Park > > > > This commit exports 'lookup_page_ext()' to GPL modules. It will be used > > by DAMON in following commit for the implementation of the region based > > sampling. > > Maybe I'm missing something, but why is DAMON a module? I made it loadable just for easier adoption from downstream kernels. I could drop the module build support if asked. Thanks, SeongJae Park > > > Signed-off-by: SeongJae Park > > Reviewed-by: Leonard Foerster > > Reviewed-by: Varad Gautam > > --- > > mm/page_ext.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/mm/page_ext.c b/mm/page_ext.c > > index a3616f7a0e9e..9d802d01fcb5 100644 > > --- a/mm/page_ext.c > > +++ b/mm/page_ext.c > > @@ -131,6 +131,7 @@ struct page_ext *lookup_page_ext(const struct page *page) > > MAX_ORDER_NR_PAGES); > > return get_entry(base, index); > > } > > +EXPORT_SYMBOL_GPL(lookup_page_ext); > > > > static int __init alloc_node_page_ext(int nid) > > { > > -- > > 2.17.1 > > > > -- > Sincerely yours, > Mike.