summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorVladimir Davydov <vdavydov@parallels.com>2014-04-03 23:47:22 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-04 01:20:58 +0200
commit3115cd9145511c9159a19b118836dd5115d0a781 (patch)
tree60ce3b9616b3099201179d034879b538a7887793 /mm/compaction.c
parentmm: vmscan: move call to shrink_slab() to shrink_zones() (diff)
downloadlinux-3115cd9145511c9159a19b118836dd5115d0a781.tar.xz
linux-3115cd9145511c9159a19b118836dd5115d0a781.zip
mm: vmscan: remove shrink_control arg from do_try_to_free_pages()
There is no need passing on a shrink_control struct from try_to_free_pages() and friends to do_try_to_free_pages() and then to shrink_zones(), because it is only used in shrink_zones() and the only field initialized on the top level is gfp_mask, which is always equal to scan_control.gfp_mask. So let's move shrink_control initialization to shrink_zones(). Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Rik van Riel <riel@redhat.com> Cc: Dave Chinner <dchinner@redhat.com> Cc: Glauber Costa <glommer@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions