summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJerome Marchand <jmarchan@redhat.com>2014-08-07 01:08:01 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 03:01:22 +0200
commit7c0db9e917f77e6de2a524b33b5436491850dc79 (patch)
treeb86f0f606f3f6dbfa87d8ad1b663a7f286b566a3 /mm
parentmm, oom: remove unnecessary exit_state check (diff)
downloadlinux-7c0db9e917f77e6de2a524b33b5436491850dc79.tar.xz
linux-7c0db9e917f77e6de2a524b33b5436491850dc79.zip
mm, vmscan: fix an outdated comment still mentioning get_scan_ratio
Quite a while ago, get_scan_ratio() has been renamed get_scan_count(), however a comment in shrink_active_list() still mention it. This patch fixes the outdated comment. Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Rik van Riel <riel@redhat.com> Cc: Mel Gorman <mgorman@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 9c8222b499b4..88ab53c9949a 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1756,7 +1756,7 @@ static void shrink_active_list(unsigned long nr_to_scan,
* Count referenced pages from currently used mappings as rotated,
* even though only some of them are actually re-activated. This
* helps balance scan pressure between file and anonymous pages in
- * get_scan_ratio.
+ * get_scan_count.
*/
reclaim_stat->recent_rotated[file] += nr_rotated;