* [PATCH] mm/memory_hotplug: remove an unused variable in move_pfn_range_to_zone()
@ 2017-06-26 23:19 Wei Yang
2017-06-27 4:56 ` Anshuman Khandual
0 siblings, 1 reply; 3+ messages in thread
From: Wei Yang @ 2017-06-26 23:19 UTC (permalink / raw)
To: mhocko, akpm; +Cc: linux-mm, linux-kernel, Wei Yang
There is an unused variable in move_pfn_range_to_zone().
This patch just removes it.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
mm/memory_hotplug.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 514014dde16b..16167c92bbf1 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -899,7 +899,6 @@ void __ref move_pfn_range_to_zone(struct zone *zone,
struct pglist_data *pgdat = zone->zone_pgdat;
int nid = pgdat->node_id;
unsigned long flags;
- unsigned long i;
if (zone_is_empty(zone))
init_currently_empty_zone(zone, start_pfn, nr_pages);
--
2.11.0
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/memory_hotplug: remove an unused variable in move_pfn_range_to_zone()
2017-06-26 23:19 [PATCH] mm/memory_hotplug: remove an unused variable in move_pfn_range_to_zone() Wei Yang
@ 2017-06-27 4:56 ` Anshuman Khandual
2017-06-27 5:25 ` Michal Hocko
0 siblings, 1 reply; 3+ messages in thread
From: Anshuman Khandual @ 2017-06-27 4:56 UTC (permalink / raw)
To: Wei Yang, mhocko, akpm; +Cc: linux-mm, linux-kernel
On 06/27/2017 04:49 AM, Wei Yang wrote:
> There is an unused variable in move_pfn_range_to_zone().
>
> This patch just removes it.
>
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> ---
> mm/memory_hotplug.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> index 514014dde16b..16167c92bbf1 100644
> --- a/mm/memory_hotplug.c
> +++ b/mm/memory_hotplug.c
> @@ -899,7 +899,6 @@ void __ref move_pfn_range_to_zone(struct zone *zone,
> struct pglist_data *pgdat = zone->zone_pgdat;
> int nid = pgdat->node_id;
> unsigned long flags;
> - unsigned long i;
>
> if (zone_is_empty(zone))
> init_currently_empty_zone(zone, start_pfn, nr_pages);
We have this down in the function. IIRC I had checked out tag
mmotm-2017-06-16-13-59 where I am looking out for this function.
for (i = 0; i < nr_pages; i++) {
unsigned long pfn = start_pfn + i;
set_page_links(pfn_to_page(pfn), zone_idx(zone), nid, pfn);
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] mm/memory_hotplug: remove an unused variable in move_pfn_range_to_zone()
2017-06-27 4:56 ` Anshuman Khandual
@ 2017-06-27 5:25 ` Michal Hocko
0 siblings, 0 replies; 3+ messages in thread
From: Michal Hocko @ 2017-06-27 5:25 UTC (permalink / raw)
To: Anshuman Khandual; +Cc: Wei Yang, akpm, linux-mm, linux-kernel
On Tue 27-06-17 10:26:38, Anshuman Khandual wrote:
> On 06/27/2017 04:49 AM, Wei Yang wrote:
> > There is an unused variable in move_pfn_range_to_zone().
> >
> > This patch just removes it.
> >
> > Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> > ---
> > mm/memory_hotplug.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> > index 514014dde16b..16167c92bbf1 100644
> > --- a/mm/memory_hotplug.c
> > +++ b/mm/memory_hotplug.c
> > @@ -899,7 +899,6 @@ void __ref move_pfn_range_to_zone(struct zone *zone,
> > struct pglist_data *pgdat = zone->zone_pgdat;
> > int nid = pgdat->node_id;
> > unsigned long flags;
> > - unsigned long i;
> >
> > if (zone_is_empty(zone))
> > init_currently_empty_zone(zone, start_pfn, nr_pages);
>
> We have this down in the function. IIRC I had checked out tag
> mmotm-2017-06-16-13-59 where I am looking out for this function.
It's a follow up for
mm-memory_hotplug-do-not-associate-hotadded-memory-to-zones-until-online-fix-2.patch
in mmotm-2017-06-23-15-03
>
> for (i = 0; i < nr_pages; i++) {
> unsigned long pfn = start_pfn + i;
> set_page_links(pfn_to_page(pfn), zone_idx(zone), nid, pfn);
> }
>
>
--
Michal Hocko
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-27 5:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26 23:19 [PATCH] mm/memory_hotplug: remove an unused variable in move_pfn_range_to_zone() Wei Yang
2017-06-27 4:56 ` Anshuman Khandual
2017-06-27 5:25 ` Michal Hocko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox