diff options
author | Mel Gorman <mgorman@techsingularity.net> | 2016-05-20 02:13:44 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-20 04:12:14 +0200 |
commit | 4dfa6cd8fdb1682586d463bc34888980fe98eb46 (patch) | |
tree | 99841000a97c5b9c0ba7daf68ebb8ca59bc035ac /mm/page_alloc.c | |
parent | mm, page_alloc: convert nr_fair_skipped to bool (diff) | |
download | linux-4dfa6cd8fdb1682586d463bc34888980fe98eb46.tar.xz linux-4dfa6cd8fdb1682586d463bc34888980fe98eb46.zip |
mm, page_alloc: remove unnecessary local variable in get_page_from_freelist
zonelist here is a copy of a struct field that is used once. Ditch it.
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 41d20bf66ac8..1d705803fc66 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2676,7 +2676,6 @@ static struct page * get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, const struct alloc_context *ac) { - struct zonelist *zonelist = ac->zonelist; struct zoneref *z; struct page *page = NULL; struct zone *zone; @@ -2690,7 +2689,7 @@ zonelist_scan: * Scan zonelist, looking for a zone with enough free. * See also __cpuset_node_allowed() comment in kernel/cpuset.c. */ - for_each_zone_zonelist_nodemask(zone, z, zonelist, ac->high_zoneidx, + for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, ac->high_zoneidx, ac->nodemask) { unsigned long mark; |