]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c965824e0eef6d025e565c82a3203e29323c8ed
treed0981d7146ea7b55ca0e615c9e5ff1a23c97a393
parent2153f25d6bb5a2fb81d83ad1e7122768c6c8b562
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