lkml.org 
[lkml]   [2020]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 10/12] mm/gup: /proc/vmstat: pin_user_pages (FOLL_PIN) reporting
    On Fri, Jan 31, 2020 at 07:40:27PM -0800, John Hubbard wrote:
    > diff --git a/mm/gup.c b/mm/gup.c
    > index c10d0d051c5b..9fe61d15fc0e 100644
    > --- a/mm/gup.c
    > +++ b/mm/gup.c
    > @@ -29,6 +29,19 @@ struct follow_page_context {
    > unsigned int page_mask;
    > };
    >
    > +#ifdef CONFIG_DEBUG_VM

    Why under CONFIG_DEBUG_VM? There's nothing about this in the cover letter.

    > +static inline void __update_proc_vmstat(struct page *page,
    > + enum node_stat_item item, int count)
    > +{
    > + mod_node_page_state(page_pgdat(page), item, count);
    > +}
    > +#else
    > +static inline void __update_proc_vmstat(struct page *page,
    > + enum node_stat_item item, int count)
    > +{
    > +}
    > +#endif
    > +
    > static void hpage_pincount_add(struct page *page, int refs)
    > {
    > VM_BUG_ON_PAGE(!hpage_pincount_available(page), page);
    --
    Kirill A. Shutemov

    \
     
     \ /
      Last update: 2020-02-03 14:55    [W:2.506 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site