lkml.org 
[lkml]   [2013]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3, part4 38/39] mm/hotplug: prepare for removing num_physpages
> >> diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> >> index 97454b3..9b1b494 100644
> >> --- a/mm/memory_hotplug.c
> >> +++ b/mm/memory_hotplug.c
> >> @@ -751,10 +751,6 @@ EXPORT_SYMBOL_GPL(restore_online_page_callback);
> >>
> >> void __online_page_set_limits(struct page *page)
> >> {
> >> - unsigned long pfn = page_to_pfn(page);
> >> -
> >> - if (pfn >= num_physpages)
> >> - num_physpages = pfn + 1;
> >> }
> >> EXPORT_SYMBOL_GPL(__online_page_set_limits);
> >
> > How can this be correct?
> > With this change __online_page_set_limits() is now a nop.
> Hi Sam,
> We will eventually remove the global variable num_physpages in the last patch.
> I kept the nop __online_page_set_limits() because I have a plan to use it to fix other
> bugs in memory hotplug, otherwise it may be killed too.

The xen ballon driver uses __online_page_set_limits for memory
hotplug - so this will break this driver afaics.

Sam


\
 
 \ /
  Last update: 2013-03-29 18:01    [W:0.054 / U:21.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site