Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577630 > unrolled thread
| Started by | Wei Yang <richard.weiyang@gmail.com> |
|---|---|
| First post | 2017-02-09 15:20 +0100 |
| Last post | 2017-02-09 15:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE Wei Yang <richard.weiyang@gmail.com> - 2017-02-09 15:20 +0100
Re: [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-02-09 15:40 +0100
| From | Wei Yang <richard.weiyang@gmail.com> |
|---|---|
| Date | 2017-02-09 15:20 +0100 |
| Subject | [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE |
| Message-ID | <t8XJL-7cN-21@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Anshuman Khandual <khandual@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-02-09 15:40 +0100 |
| Subject | Re: [PATCH] mm/page_alloc: remove redundant init code for ZONE_MOVABLE |
| Message-ID | <t8Y37-7ju-5@gated-at.bofh.it> |
| In reply to | #1577630 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web