From: Minchan Kim Date: Wed, 21 Oct 2015 22:03:48 +0000 (+1100) Subject: mm: document deactivate_page X-Git-Tag: KARO-TX6UL-2015-11-03~14^2~73 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b87f964c808842075194af371b048825fd687c24;p=karo-tx-linux.git 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 --- 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)) {