diff options
author | Vladimir Davydov <vdavydov@parallels.com> | 2014-04-03 14:47:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:20:58 -0700 |
commit | 3115cd9145511c9159a19b118836dd5115d0a781 (patch) | |
tree | 60ce3b9616b3099201179d034879b538a7887793 /Makefile | |
parent | 65ec02cb9ad440957777a2da6058956a52806460 (diff) | |
download | op-kernel-dev-3115cd9145511c9159a19b118836dd5115d0a781.zip op-kernel-dev-3115cd9145511c9159a19b118836dd5115d0a781.tar.gz |
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 'Makefile')
0 files changed, 0 insertions, 0 deletions