Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1153602ybh; Mon, 13 Jul 2020 10:39:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBsv+z/o8DS5vMIbTIBUT6An02VjFf8iWJIoTMfOqF8+V2NrpwIaUnquCJMuK8ulF+bhkF X-Received: by 2002:a17:906:1394:: with SMTP id f20mr858073ejc.114.1594661987245; Mon, 13 Jul 2020 10:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594661987; cv=none; d=google.com; s=arc-20160816; b=DczGnuoV1P4HVQjtg7UdioFtHLkoq2ezMVY7wZpohopnyW/BlufeA0E3ikqmO7MRFr 4tRs6Fz+6Rk28XGTnpnADi3a+mWavf2Qdc2UC2G/dB92Hw2+0K4OjMECf8Q9GNPY2XK6 A/G7kkFfSf/VAvcaONRS4rMnDONcfNvZJuThtWU0/9hDUjC/ykuKUsAYvi96EKwSh8rK l+Aw0W5aTqudNaUoO+vIkYBwIM8iTql2UavYEf6YvrMuaT/TiS0ijES1CZimI5DbrHb2 gBftMjtNsmDuTY3DSpDZAgqPi+6Ti0Cl/wQEbde26AJHQtufImhoLbdGW8aSqQVsDMZN BnvQ== 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=T3joC21Q3WsUvBmyUsXIOnge1qxcYWwsALm+sfFme2I=; b=xim4PmAFzDlXxb6VZpoi8UXBObhyOg1nrb8aL8rIWAFzd0qVMD6lK/VHUUQyau00iK w4g9TWJ8HOxTc1T8/SnMXnrnzEeGfAN0Cy8do2avAldzb1CukCejQMW9SluHSc3xgHyg CF5xQBPmnFAtoRxq5r0odwkxmgOoFndK9Jr2UFkFw7Gz91JOf9XDYAxrUKSthMKZ2FLW HCnZl9AFkyebOMCmUcLHATo3tpfjvEV97JccoM4BVlK16IBNodXD87WlCQ/WnI84aZu+ 9RFQTSicst950sjEqi2tCLiME2KtEkjjknDh34+uVQ3nA3pIqJLiDom3wlxBUiB+g23+ sUwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Eqq3AWLt; 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 dd11si9174668edb.79.2020.07.13.10.39.23; Mon, 13 Jul 2020 10:39:47 -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=Eqq3AWLt; 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 S1729826AbgGMRjH (ORCPT + 99 others); Mon, 13 Jul 2020 13:39:07 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:65407 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729703AbgGMRjH (ORCPT ); Mon, 13 Jul 2020 13:39:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1594661947; x=1626197947; h=from:to:cc:subject:date:message-id:in-reply-to: mime-version; bh=T3joC21Q3WsUvBmyUsXIOnge1qxcYWwsALm+sfFme2I=; b=Eqq3AWLtZx6DCU0DcUcreaXpEtTRaubKTxkJ3D9SmL0TLvkswOEwD1+q mEAjhgGzZyyzULzG8354QuUjfLG03ptnoZCikjmd1KA1x8nj85W19I6vZ CgDXNV/OWlFmD6OwP8Q0oYmV4WLmAwq5/nHgOLYn6Fd8KDRDH3DgW4dTb M=; IronPort-SDR: toR5kVyvDSeaPz16GNmjn+07qfTDjOYYC+IiceMsuH1Ar9qMnz4Njk3bbgQhO/5vr8DWUdLfRV MTY6B5FW3shA== X-IronPort-AV: E=Sophos;i="5.75,348,1589241600"; d="scan'208";a="41570660" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-55156cd4.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 13 Jul 2020 17:39:02 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-55156cd4.us-west-2.amazon.com (Postfix) with ESMTPS id 384CDA23D0; Mon, 13 Jul 2020 17:38:58 +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 17:38:58 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.26) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 17:38:37 +0000 From: SeongJae Park To: Mike Rapoport CC: SeongJae Park , , "SeongJae Park" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: Re: Re: [PATCH v18 01/14] mm/page_ext: Export lookup_page_ext() to GPL modules Date: Mon, 13 Jul 2020 19:38:05 +0200 Message-ID: <20200713173805.31923-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200713171909.GD707159@kernel.org> (raw) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.26] X-ClientProxiedBy: EX13D40UWA002.ant.amazon.com (10.43.160.149) 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 20:19:09 +0300 Mike Rapoport wrote: > On Mon, Jul 13, 2020 at 02:21:43PM +0200, SeongJae Park wrote: > > 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. > > Well, exporting core mm symbols to modules should be considred very > carefully. Agreed. I will drop the module support from the next spin. > > Why lookup_page_ext() is required for DAMON? It is not used anywhere in > this patchset. It's indirectly used. In the 6th patch, DAMON uses 'set_page_young()' to not interfere with other PTE Accessed bit users. And, 'set_page_young()' uses 'lookup_page_ext()' if !CONFIG_64BIT. That's why I exported it. Thanks, SeongJae Park