mm: vmscan: move swappiness out of scan_control
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 6 Aug 2014 23:06:17 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:18 +0000 (18:01 -0700)
commit02695175c79b9163c798cc1cb78c628d011c07a6
treed0981d7146ea7b55ca0e615c9e5ff1a23c97a393
parent2344d7e44b870f9df67e505ee4e633217de752ba
mm: vmscan: move swappiness out of scan_control

Swappiness is determined for each scanned memcg individually in
shrink_zone() and is not a parameter that applies throughout the reclaim
scan.  Move it out of struct scan_control to prevent accidental use of a
stale value.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c
This page took 0.025563 seconds and 5 git commands to generate.