[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1376517265-8yi1139t-mutt-n-horiguchi@ah.jp.nec.com>
Date: Wed, 14 Aug 2013 17:54:25 -0400
From: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
To: Tang Chen <tangchen@...fujitsu.com>
Cc: robert.moore@...el.com, lv.zheng@...el.com, rjw@...k.pl,
lenb@...nel.org, tglx@...utronix.de, mingo@...e.hu, hpa@...or.com,
akpm@...ux-foundation.org, tj@...nel.org, trenn@...e.de,
yinghai@...nel.org, jiang.liu@...wei.com, wency@...fujitsu.com,
laijs@...fujitsu.com, isimatu.yasuaki@...fujitsu.com,
izumi.taku@...fujitsu.com, mgorman@...e.de, minchan@...nel.org,
mina86@...a86.com, gong.chen@...ux.intel.com,
vasilis.liaskovitis@...fitbricks.com, lwoodman@...hat.com,
riel@...hat.com, jweiner@...hat.com, prarit@...hat.com,
zhangyanfei@...fujitsu.com, yanghy@...fujitsu.com, x86@...nel.org,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linux-acpi@...r.kernel.org
Subject: Re: [PATCH part5 5/7] memblock, mem_hotplug: Make memblock skip
hotpluggable regions by default.
On Thu, Aug 08, 2013 at 06:16:17PM +0800, Tang Chen wrote:
> --- a/mm/memblock.c
> +++ b/mm/memblock.c
...
> @@ -719,6 +723,10 @@ void __init_memblock __next_free_mem_range_rev(u64 *idx, int nid,
> if (nid != MAX_NUMNODES && nid != memblock_get_region_node(m))
> continue;
>
> + /* skip hotpluggable memory regions */
> + if (m->flags & MEMBLOCK_HOTPLUG)
> + continue;
> +
> /* scan areas before each reservation for intersection */
> for ( ; ri >= 0; ri--) {
> struct memblock_region *r = &rsv->regions[ri];
> --
Why don't you add this also in __next_free_mem_range()?
Thanks,
Naoya Horiguchi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists