aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2015-05-14 01:01:51 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2015-05-14 01:01:51 +0000
commitf24ba8edbab204124952e2265718132a06e5c345 (patch)
tree90fd8b4df36a3421ae3b12e0da4a11d2ab6026fb
parent2174b908dfebd39db2574c7d27b7df220554a20e (diff)
downloadmm-next-f24ba8edbab204124952e2265718132a06e5c345.tar.gz
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 949e7d00da7ea9..8fa39e1ad46fc5 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -871,6 +871,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)) {