mm: vmscan: remove shrink_control arg from do_try_to_free_pages()
authorVladimir Davydov <[email protected]>
Thu, 3 Apr 2014 21:47:22 +0000 (14:47 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:20:58 +0000 (16:20 -0700)
commit3115cd9145511c9159a19b118836dd5115d0a781
tree60ce3b9616b3099201179d034879b538a7887793
parent65ec02cb9ad440957777a2da6058956a52806460
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 <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Glauber Costa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c