* [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE
@ 2017-02-09 14:17 Wei Yang
2017-02-09 14:34 ` Anshuman Khandual
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yang @ 2017-02-09 14:17 UTC (permalink / raw)
To: akpm, mgorman, mhocko; +Cc: linux-mm, linux-kernel, 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.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
mm/page_alloc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 51c60c0eadcb..cc9695d14226 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -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));
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE
2017-02-09 14:17 [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE Wei Yang
@ 2017-02-09 14:34 ` Anshuman Khandual
0 siblings, 0 replies; 2+ messages in thread
From: Anshuman Khandual @ 2017-02-09 14:34 UTC (permalink / raw)
To: Wei Yang, akpm, mgorman, mhocko; +Cc: linux-mm, linux-kernel
On 02/09/2017 07:47 PM, Wei Yang wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-09 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-09 14:17 [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE Wei Yang
2017-02-09 14:34 ` Anshuman Khandual
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).