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>
This commit is contained in:
Mel Gorman 2016-05-19 17:13:44 -07:00 коммит произвёл Linus Torvalds
Родитель fa379b9586
Коммит 4dfa6cd8fd
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -2676,7 +2676,6 @@ static struct page *
get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags,
const struct alloc_context *ac) const struct alloc_context *ac)
{ {
struct zonelist *zonelist = ac->zonelist;
struct zoneref *z; struct zoneref *z;
struct page *page = NULL; struct page *page = NULL;
struct zone *zone; struct zone *zone;
@ -2690,7 +2689,7 @@ zonelist_scan:
* Scan zonelist, looking for a zone with enough free. * Scan zonelist, looking for a zone with enough free.
* See also __cpuset_node_allowed() comment in kernel/cpuset.c. * 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) { ac->nodemask) {
unsigned long mark; unsigned long mark;