From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932858AbeCLSRh (ORCPT ); Mon, 12 Mar 2018 14:17:37 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:43182 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932829AbeCLSR0 (ORCPT ); Mon, 12 Mar 2018 14:17:26 -0400 X-Google-Smtp-Source: AG47ELsCHn/8PA104eOModbia8XNqvksYjeyswSkTBmFyJrSv73lS9WcoeCqXmpCQ9ACA5F8JS8YSEIfN0X+55wWJbI= MIME-Version: 1.0 In-Reply-To: <20180312141721.GB4214@redhat.com> References: <152066488891.40260.14605734226832760468.stgit@dwillia2-desk3.amr.corp.intel.com> <152066492680.40260.6843692416565308005.stgit@dwillia2-desk3.amr.corp.intel.com> <20180312141721.GB4214@redhat.com> From: Dan Williams Date: Mon, 12 Mar 2018 11:17:25 -0700 Message-ID: Subject: Re: [PATCH v5 07/11] mm, dev_pagemap: introduce CONFIG_DEV_PAGEMAP_OPS To: Jerome Glisse Cc: linux-nvdimm , Michal Hocko , david , Christoph Hellwig , linux-xfs , linux-fsdevel , Jan Kara , Ross Zwisler , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id w2CIJVDw009903 On Mon, Mar 12, 2018 at 7:17 AM, Jerome Glisse wrote: > On Fri, Mar 09, 2018 at 10:55:26PM -0800, Dan Williams wrote: >> The HMM sub-system extended dev_pagemap to arrange a callback when a >> dev_pagemap managed page is freed. Since a dev_pagemap page is free / >> idle when its reference count is 1 it requires an additional branch to >> check the page-type at put_page() time. Given put_page() is a hot-path >> we do not want to incur that check if HMM is not in use, so a static >> branch is used to avoid that overhead when not necessary. >> >> Now, the FS_DAX implementation wants to reuse this mechanism for >> receiving dev_pagemap ->page_free() callbacks. Rework the HMM-specific >> static-key into a generic mechanism that either HMM or FS_DAX code paths >> can enable. > > Why EXPORT_SYMBOL_GPL and not EXPORT_SYMBOL like it was prior to this > patch ? Not i care that much about that, just wondering. Maybe keep it > EXPORT_SYMBOL() ? HMM has significant integrations and useful hacks within the mm sub-system, I think we should go further than just these symbols and also include devm_memremap_pages() as EXPORT_SYMBOL_GPL. It was simply an oversight that these were EXPORT_SYMBOL previously. > In any case > Reviewed-by: "Jérôme Glisse" Thanks!