]> git.baikalelectronics.ru Git - kernel.git/commit
mm: __count_immobile_pages(): make sure the node is online
authorMichal Hocko <mhocko@suse.cz>
Fri, 20 Jan 2012 22:33:58 +0000 (14:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 Jan 2012 16:38:47 +0000 (08:38 -0800)
commit006887772c4d5b45e30a03a52d32233cb93f1f7f
tree42c001d079ec926186873b91d7d84bf66c54bcad
parent4094d054187778e21f9a01612cb5594ca899b8c2
mm: __count_immobile_pages(): make sure the node is online

page_zone() requires an online node otherwise we are accessing NULL
NODE_DATA.  This is not an issue at the moment because node_zones are
located at the structure beginning but this might change in the future
so better be careful about that.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c