]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: vmscan: move swappiness out of scan_control
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 26 Jun 2014 00:42:41 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:41 +0000 (10:42 +1000)
commit0327ef91b53c58cda856630acbb160e046f1ae62
tree9028887d0709d8065230b7a1e46c029936d2f36c
parent863bd7779a15860b1dda645229ef5e4f90514412
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>
mm/vmscan.c