From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: akpm@linux-foundation.org
Cc: mm-commits@vger.kernel.org, hannes@saeurebad.de, ak@suse.de,
clameter@sgi.com, kamezawa.hiroyu@jp.fujitsu.com, mingo@elte.hu,
y-goto@jp.fujitsu.com, LKML <linux-kernel@vger.kernel.org>
Subject: Re: + bootmem-node-setup-agnostic-free_bootmem.patch added to -mm tree
Date: Tue, 15 Apr 2008 00:02:29 -0700 [thread overview]
Message-ID: <86802c440804150002t2abd5532wddcce6304fe991fb@mail.gmail.com> (raw)
In-Reply-To: <200804150623.m3F6NInZ014509@imap1.linux-foundation.org>
On Mon, Apr 14, 2008 at 11:23 PM, <akpm@linux-foundation.org> wrote:
>
> The patch titled
> bootmem: node-setup agnostic free_bootmem()
> has been added to the -mm tree. Its filename is
> bootmem-node-setup-agnostic-free_bootmem.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
>
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
>
> ------------------------------------------------------
> Subject: bootmem: node-setup agnostic free_bootmem()
> From: Johannes Weiner <hannes@saeurebad.de>
>
> Make free_bootmem() look up the node holding the specified address range which
> lets it work transparently on single-node and multi-node configurations.
>
> Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
> Cc: Yinghai Lu <yhlu.kernel@gmail.com>
> Acked-by: Andi Kleen <ak@suse.de>
> Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Christoph Lameter <clameter@sgi.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> mm/bootmem.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff -puN mm/bootmem.c~bootmem-node-setup-agnostic-free_bootmem mm/bootmem.c
> --- a/mm/bootmem.c~bootmem-node-setup-agnostic-free_bootmem
> +++ a/mm/bootmem.c
> @@ -421,7 +421,15 @@ int __init reserve_bootmem(unsigned long
>
> void __init free_bootmem(unsigned long addr, unsigned long size)
> {
> - free_bootmem_core(NODE_DATA(0)->bdata, addr, size);
> + bootmem_data_t *bdata;
> +
> + list_for_each_entry (bdata, &bdata_list, list) {
> + if (addr < bdata->node_boot_start)
> + continue;
> + free_bootmem_core(bdata, addr, size);
> + return;
> + }
> + BUG();
> }
NAK,
it doesn't solve the cross nodes bootmem that is reserved via
reserve_early. like ramdisk free in x86/setup_64.c
...
free_bootmem(ramdisk_image, ramdisk_size);
printk(KERN_ERR "initrd extends beyond end of memory "
"(0x%08lx > 0x%08lx)\ndisabling initrd\n",
ramdisk_end, end_of_mem);
initrd_start = 0;
..
YH
next parent reply other threads:[~2008-04-15 7:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200804150623.m3F6NInZ014509@imap1.linux-foundation.org>
2008-04-15 7:02 ` Yinghai Lu [this message]
2008-04-15 7:11 ` Ingo Molnar
2008-04-15 12:51 ` Johannes Weiner
2008-04-15 13:41 ` Roel Kluin
2008-04-15 14:01 ` Johannes Weiner
2008-04-15 18:57 ` Yinghai Lu
2008-04-15 19:55 ` Johannes Weiner
2008-04-15 20:03 ` Yinghai Lu
2008-04-15 21:14 ` Johannes Weiner
2008-04-15 21:19 ` Yinghai Lu
2008-04-15 21:38 ` Johannes Weiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86802c440804150002t2abd5532wddcce6304fe991fb@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=hannes@saeurebad.de \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mm-commits@vger.kernel.org \
--cc=y-goto@jp.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®