From: Christoph Hellwig <hch@infradead.org>
To: Patricia Gaughen <gone@us.ibm.com>
Cc: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] modularization of mem_init() for 2.4.19pre7
Date: Thu, 18 Apr 2002 19:28:29 +0100 [thread overview]
Message-ID: <20020418192829.A14979@infradead.org> (raw)
In-Reply-To: <200204181817.g3IIHMM02913@w-gaughen.des.beaverton.ibm.com>
On Thu, Apr 18, 2002 at 11:17:22AM -0700, Patricia Gaughen wrote:
> -void __init mem_init(void)
> +void __init init_one_highpage(struct page *page, int pfn, int bad_ppro)
> +{
> + if (!page_is_ram(pfn)) {
> + SetPageReserved(page);
> + return;
> + }
> +
> + if (bad_ppro && page_kills_ppro(pfn))
> + {
> + SetPageReserved(page);
> + return;
> + }
I'd suggest to stay with one coding style. Prefferedly that would be
the one in Documentation/CodingStyle.
> +
> + reservedpages = 0;
> + for (pfn = 0; pfn < max_low_pfn; pfn++)
> + /*
> + * Only count reserved RAM pages
> + */
> + if (page_is_ram(pfn) && PageReserved(mem_map+pfn))
> + reservedpages++;
Adding braces around this hughe loop body would make it a little
more readable..
Besides these minor style nitpicks the pages look good to me.
BTW: Where is the NUMA code that builds ontop of this?
Christoph
next prev parent reply other threads:[~2002-04-18 18:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-18 18:17 Patricia Gaughen
2002-04-18 18:28 ` Christoph Hellwig [this message]
2002-04-18 18:51 ` Patricia Gaughen
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=20020418192829.A14979@infradead.org \
--to=hch@infradead.org \
--cc=gone@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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®