lkml.org 
[lkml]   [2021]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/2] mm: Export the alloc_demote_page() function
    Date
    On Tue, 21 Dec 2021 17:18:03 +0800 Baolin Wang <baolin.wang@linux.alibaba.com> wrote:

    > Export the alloc_demote_page() function to the head file as a
    > preparation to support page demotion for DAMON monitor.
    >
    > Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>

    Reviewed-by: SeongJae Park <sj@kernel.org>


    Thanks,
    SJ

    > ---
    > mm/internal.h | 1 +
    > mm/vmscan.c | 2 +-
    > 2 files changed, 2 insertions(+), 1 deletion(-)
    >
    > diff --git a/mm/internal.h b/mm/internal.h
    > index deb9bda..99ea5fb 100644
    > --- a/mm/internal.h
    > +++ b/mm/internal.h
    > @@ -181,6 +181,7 @@ static inline void set_page_refcounted(struct page *page)
    > extern int isolate_lru_page(struct page *page);
    > extern void putback_lru_page(struct page *page);
    > extern void reclaim_throttle(pg_data_t *pgdat, enum vmscan_throttle_state reason);
    > +extern struct page *alloc_demote_page(struct page *page, unsigned long node);
    >
    > /*
    > * in mm/rmap.c:
    > diff --git a/mm/vmscan.c b/mm/vmscan.c
    > index f3162a5..bf38327 100644
    > --- a/mm/vmscan.c
    > +++ b/mm/vmscan.c
    > @@ -1458,7 +1458,7 @@ static void page_check_dirty_writeback(struct page *page,
    > mapping->a_ops->is_dirty_writeback(page, dirty, writeback);
    > }
    >
    > -static struct page *alloc_demote_page(struct page *page, unsigned long node)
    > +struct page *alloc_demote_page(struct page *page, unsigned long node)
    > {
    > struct migration_target_control mtc = {
    > /*
    > --
    > 1.8.3.1

    \
     
     \ /
      Last update: 2021-12-21 11:14    [W:3.971 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site