* + mm-fix-page-reclaim-comment-error.patch added to -mm tree
@ 2012-06-22 20:59 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2012-06-22 20:59 UTC (permalink / raw
To: mm-commits; +Cc: liwp, kosaki.motohiro, liwp.linux, minchan, riel
The patch titled
Subject: mm: fix page reclaim comment error
has been added to the -mm tree. Its filename is
mm-fix-page-reclaim-comment-error.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Wanpeng Li <liwp@linux.vnet.ibm.com>
Subject: mm: fix page reclaim comment error
Since there are five lists in LRU cache, the array nr in get_scan_count
should be:
nr[0] = anon inactive pages to scan; nr[1] = anon active pages to scan
nr[2] = file inactive pages to scan; nr[3] = file active pages to scan
Signed-off-by: Wanpeng Li <liwp.linux@gmail.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/vmscan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN mm/vmscan.c~mm-fix-page-reclaim-comment-error mm/vmscan.c
--- a/mm/vmscan.c~mm-fix-page-reclaim-comment-error
+++ a/mm/vmscan.c
@@ -1577,7 +1577,8 @@ static int vmscan_swappiness(struct scan
* by looking at the fraction of the pages scanned we did rotate back
* onto the active list instead of evict.
*
- * nr[0] = anon pages to scan; nr[1] = file pages to scan
+ * nr[0] = anon inactive pages to scan; nr[1] = anon active pages to scan
+ * nr[2] = file inactive pages to scan; nr[3] = file active pages to scan
*/
static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc,
unsigned long *nr)
_
Subject: Subject: mm: fix page reclaim comment error
Patches currently in -mm which might be from liwp@linux.vnet.ibm.com are
origin.patch
linux-next.patch
mm-prepare-for-removal-of-obsolete-proc-sys-vm-nr_pdflush_threads.patch
mm-cleanup-on-the-comments-of-zone_reclaim_stat.patch
mm-fix-page-reclaim-comment-error.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-22 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-22 20:59 + mm-fix-page-reclaim-comment-error.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.