]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: test PageSwapBacked in lumpy reclaim
authorHugh Dickins <hughd@google.com>
Tue, 10 Jan 2012 23:08:33 +0000 (15:08 -0800)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Sun, 7 Oct 2012 06:04:38 +0000 (23:04 -0700)
commit993d208d4e7f3fb65c5bcb8bcf94193158ade99e
tree5b187b70bb16647be3302a976a623b3a328235b8
parentb16d586637d2fef1368a253184933f5074ced6e6
mm: test PageSwapBacked in lumpy reclaim

commit 043bcbe5ec51e0478ef2b44acef17193e01d7f70 upstream.

Stable note: Not tracked in Bugzilla. There were reports of shared
mapped pages being unfairly reclaimed in comparison to older kernels.
This is being addressed over time. Even though the subject
refers to lumpy reclaim, it impacts compaction as well.

Lumpy reclaim does well to stop at a PageAnon when there's no swap, but
better is to stop at any PageSwapBacked, which includes shmem/tmpfs too.

Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
(cherry picked from commit d2b02236b85226c9f2cd28e32a9fdf197584e448)

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
mm/vmscan.c