mm/page_alloc: remove redundant init code for ZONE_MOVABLE
Subsystems (2)
PATCH 1/1 mm/page_alloc: remove redundant init code for ZONE_MOVABLE
arch_zone_lowest/highest_possible_pfn[] is set to 0 and [ZONE_MOVABLE] is skipped in the loop. No need to reset them to 0 again.
This patch just removes the redundant code.
Signed-off-by Wei Yang <[email protected]>
--- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-)
mm/page_alloc.c +0 -2
@@ -6279,8 +6279,6 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn) start_pfn = end_pfn; } - arch_zone_lowest_possible_pfn[ZONE_MOVABLE ] =0 ; - arch_zone_highest_possible_pfn[ZONE_MOVABLE ] =0 ;/* Find the PFNs that ZONE_MOVABLE begins at in each node */ memset (zone_movable_pfn,0 ,sizeof (zone_movable_pfn));
Signature · 7 lines
2.11.0 -- 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 4 lines · Wei Yang
arch_zone_lowest/highest_possible_pfn[] is set to 0 and [
ZONE_MOVABLE] is skipped in the loop. No need to reset them to 0 again.This patch just removes the redundant code.
Yeah, sounds pretty straight forward.
--
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>