Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1185058 > unrolled thread

Re: [PATCH 1/1] mem-hotplug: Handle node hole when initializing numa_meminfo.

Started byTejun Heo <tj@kernel.org>
First post2015-07-15 23:30 +0200
Last post2015-07-15 23:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] mem-hotplug: Handle node hole when initializing  numa_meminfo. Tejun Heo <tj@kernel.org> - 2015-07-15 23:30 +0200

#1185058 — Re: [PATCH 1/1] mem-hotplug: Handle node hole when initializing numa_meminfo.

FromTejun Heo <tj@kernel.org>
Date2015-07-15 23:30 +0200
SubjectRe: [PATCH 1/1] mem-hotplug: Handle node hole when initializing numa_meminfo.
Message-ID<pMCpA-35F-19@gated-at.bofh.it>
On Wed, Jul 01, 2015 at 11:16:54AM +0800, Tang Chen wrote:
...
> -		/* and there's no empty block */
> -		if (bi->start >= bi->end)
> +		/* and there's no empty or non-exist block */
> +		if (bi->start >= bi->end ||
> +		    memblock_overlaps_region(&memblock.memory,
> +			bi->start, bi->end - bi->start) == -1)

Ugh.... can you please change memblock_overlaps_region() to return
bool instead?

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web