[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211221101341.14345-1-sj@kernel.org>
Date: Tue, 21 Dec 2021 10:13:41 +0000
From: SeongJae Park <sj@...nel.org>
To: Baolin Wang <baolin.wang@...ux.alibaba.com>
Cc: sj@...nel.org, akpm@...ux-foundation.org, ying.huang@...el.com,
dave.hansen@...ux.intel.com, ziy@...dia.com, shy828301@...il.com,
zhongjiang-ali@...ux.alibaba.com, xlpang@...ux.alibaba.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] mm: Export the alloc_demote_page() function
On Tue, 21 Dec 2021 17:18:03 +0800 Baolin Wang <baolin.wang@...ux.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@...ux.alibaba.com>
Reviewed-by: SeongJae Park <sj@...nel.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
Powered by blists - more mailing lists