diff options
author | Minchan Kim <minchan@kernel.org> | 2015-09-23 09:04:30 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-09-23 09:04:30 +1000 |
commit | b793a4a119be6acafef293b2adc70c1e11aa68fe (patch) | |
tree | 3fbd28043b211bde834395c1600e37abefdb905e | |
parent | ecc74ef748b5b3dfe89a1ab09198ff0645f5a29c (diff) | |
download | linux-b793a4a119be6acafef293b2adc70c1e11aa68fe.tar.gz linux-b793a4a119be6acafef293b2adc70c1e11aa68fe.tar.xz |
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>
-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 f51386534bfc..f53eb7260605 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -876,6 +876,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)) { |