Re: [PATCH 2.6.32 40/42] mm/memory_hotplug.c: check for missing sections in test_pages_in_a_zone()

From: Ben Hutchings
Date: Sat Jan 23 2016 - 13:14:19 EST


On Sat, 2016-01-23 at 15:13 +0100, Willy Tarreau wrote:
> 2.6.32-longterm review patch.ÂÂIf anyone has any objections, please let me know.
>
> ------------------
>
> From: Andrew Banman <abanman@xxxxxxx>
>
> commit 5f0f2887f4de9508dcf438deab28f1de8070c271 upstream.
[...]
> diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
> index f4be464..de19654 100644
> --- a/mm/memory_hotplug.c
> +++ b/mm/memory_hotplug.c
> @@ -601,23 +601,30 @@ int is_mem_section_removable(unsigned long start_pfn, unsigned long nr_pages)
> Â */
> Âstatic int test_pages_in_a_zone(unsigned long start_pfn, unsigned long end_pfn)
> Â{
> - unsigned long pfn;
> + unsigned long pfn, sec_end_pfn;
> Â struct zone *zone = NULL;
> Â struct page *page;
> Â int i;
> - for (pfn = start_pfn;
> + for (pfn = start_pfn, sec_end_pfn = SECTION_ALIGN_UP(start_pfn);
[...]

SECTION_ALIGN_UP() is not defined in 2.6.32; it was added by commit
a539f3533b78.

Ben.

--
Ben Hutchings
Life is what happens to you while you're busy making other plans.
- John Lennon

Attachment: signature.asc
Description: This is a digitally signed message part