From: Mel Gorman Date: Thu, 9 Oct 2014 22:28:28 +0000 (-0700) Subject: mm: page_alloc: Make paranoid check in move_freepages a VM_BUG_ON X-Git-Tag: omap-for-v3.19/prcm-cleanup~134^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ee4ba7cbd30f1858f0d16911e042737c53f2ef;p=pandora-kernel.git mm: page_alloc: Make paranoid check in move_freepages a VM_BUG_ON Since 2.6.24 there has been a paranoid check in move_freepages that looks up the zone of two pages. This is a very slow path and the only time I've seen this bug trigger recently is when memory initialisation was broken during patch development. Despite the fact it's a slow path, this patch converts the check to a VM_BUG_ON anyway as it has served its purpose by now. Signed-off-by: Mel Gorman Acked-by: David Rientjes Acked-by: Rik van Riel Acked-by: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed