From b87f964c808842075194af371b048825fd687c24 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Thu, 22 Oct 2015 09:03:48 +1100 Subject: [PATCH] mm: document deactivate_page This patch adds function description for deactivate_page. Signed-off-by: Minchan Kim Cc: Michal Hocko Cc: Johannes Weiner Cc: Mel Gorman Cc: Rik van Riel Cc: Shaohua Li Cc: Wang, Yalin Signed-off-by: Andrew Morton --- mm/swap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mm/swap.c b/mm/swap.c index 0da29bb84cf0..0e306136f4a3 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -631,6 +631,13 @@ void deactivate_file_page(struct page *page) } } +/** + * deactivate_page - deactivate a page + * @page: page to deactivate + * + * This function moves @page to inactive list if @page was on active list and + * was not unevictable page to accelerate to reclaim @page. + */ void deactivate_page(struct page *page) { if (PageLRU(page) && PageActive(page) && !PageUnevictable(page)) { -- 2.39.5