summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorMel Gorman2013-07-09 01:00:25 +0200
committerLinus Torvalds2013-07-09 19:33:23 +0200
commit918fc718c5922520c499ad60f61b8df86b998ae9 (patch)
tree71c492881b0bcadcdd1a35e63f09cb6df59c86cd /mm/mmap.c
parentmm: vmscan: do not continue scanning if reclaim was aborted for compaction (diff)
downloadkernel-qcow2-linux-918fc718c5922520c499ad60f61b8df86b998ae9.tar.gz
kernel-qcow2-linux-918fc718c5922520c499ad60f61b8df86b998ae9.tar.xz
kernel-qcow2-linux-918fc718c5922520c499ad60f61b8df86b998ae9.zip
mm: vmscan: do not scale writeback pages when deciding whether to set ZONE_WRITEBACK
After the patch "mm: vmscan: Flatten kswapd priority loop" was merged the scanning priority of kswapd changed. The priority now rises until it is scanning enough pages to meet the high watermark. shrink_inactive_list sets ZONE_WRITEBACK if a number of pages were encountered under writeback but this value is scaled based on the priority. As kswapd frequently scans with a higher priority now it is relatively easy to set ZONE_WRITEBACK. This patch removes the scaling and treates writeback pages similar to how it treats unqueued dirty pages and congested pages. The user-visible effect should be that kswapd will writeback fewer pages from reclaim context. Signed-off-by: Mel Gorman <mgorman@suse.de> Cc: Rik van Riel <riel@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.cz> Cc: Dave Chinner <david@fromorbit.com> Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions