diff options
author | Mel Gorman <mgorman@techsingularity.net> | 2016-05-19 20:13:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-19 22:12:14 -0400 |
commit | 4dfa6cd8fdb1682586d463bc34888980fe98eb46 (patch) | |
tree | 99841000a97c5b9c0ba7daf68ebb8ca59bc035ac /mm/page_alloc.c | |
parent | fa379b9586c7507c607d031dadf3681ed29614a9 (diff) |
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 'mm/page_alloc.c')
-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 * | |||
2676 | get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, | 2676 | get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, |
2677 | const struct alloc_context *ac) | 2677 | const struct alloc_context *ac) |
2678 | { | 2678 | { |
2679 | struct zonelist *zonelist = ac->zonelist; | ||
2680 | struct zoneref *z; | 2679 | struct zoneref *z; |
2681 | struct page *page = NULL; | 2680 | struct page *page = NULL; |
2682 | struct zone *zone; | 2681 | struct zone *zone; |
@@ -2690,7 +2689,7 @@ zonelist_scan: | |||
2690 | * Scan zonelist, looking for a zone with enough free. | 2689 | * Scan zonelist, looking for a zone with enough free. |
2691 | * See also __cpuset_node_allowed() comment in kernel/cpuset.c. | 2690 | * See also __cpuset_node_allowed() comment in kernel/cpuset.c. |
2692 | */ | 2691 | */ |
2693 | for_each_zone_zonelist_nodemask(zone, z, zonelist, ac->high_zoneidx, | 2692 | for_each_zone_zonelist_nodemask(zone, z, ac->zonelist, ac->high_zoneidx, |
2694 | ac->nodemask) { | 2693 | ac->nodemask) { |
2695 | unsigned long mark; | 2694 | unsigned long mark; |
2696 | 2695 | ||