mm: page_alloc: Make paranoid check in move_freepages a VM_BUG_ON
Subsystems (2)
PATCH 1/1 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 is served its purpose by now.
--- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
@@ -1014,7 +1014,7 @@ int move_freepages(struct zone *zone,* Remove at a later date when no bug reports exist related to * grouping pages by mobility */ -BUG_ON (page_zone (start_page) !=page_zone (end_page)); +VM_BUG_ON (page_zone (start_page) !=page_zone (end_page));#endif for (page = start_page; page <= end_page;) {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 7 lines · Mel Gorman
Since 2.6.24 there has been a paranoid check in
move_freepagesthat 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 aVM_BUG_ONanyway as it is served its purpose by now.Signed-off-by Mel Gorman <[email protected]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 7 lines · Mel Gorman
Since 2.6.24 there has been a paranoid check in
move_freepagesthat 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 aVM_BUG_ONanyway as it is served its purpose by now.Signed-off-by Mel Gorman <[email protected]>
Quoted 7 lines · Mel Gorman
Since 2.6.24 there has been a paranoid check in
move_freepagesthat 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 aVM_BUG_ONanyway as it is served its purpose by now.Signed-off-by Mel Gorman <[email protected]>