mm/page_alloc.c: use list_for_each_entry in mark_free_pages()
authorGeliang Tang <geliangtang@163.com>
Thu, 14 Jan 2016 23:20:33 +0000 (15:20 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit86760a2c6e827858f8eaf020b12b72b3210faf79
treefcb066b1982ae53a18cbaf368ad331612cf8298c
parenta16601c5458eb702f26cd48b9e8e1a9471700e72
mm/page_alloc.c: use list_for_each_entry in mark_free_pages()

Use list_for_each_entry instead of list_for_each + list_entry to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c