diff options
author | Minchan Kim <minchan@kernel.org> | 2015-06-10 10:10:24 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-06-10 10:10:24 +1000 |
commit | 4675c72492e5f96f5ca4592a3bb6a4d949509531 (patch) | |
tree | ed603a78ef672aa303f8791d79577d3066ade5da /mm | |
parent | 311513ded5dffab67b9ea71fbb2c5102d3e0d742 (diff) |
mm: document deactivate_page
This patch adds function description for deactivate_page.
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Shaohua Li <shli@kernel.org>
Cc: Wang, Yalin <Yalin.Wang@sonymobile.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/swap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/swap.c b/mm/swap.c index a231e018fc83..0415a23475e2 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -873,6 +873,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)) { |