From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Christoph Hellwig <hch@lst.de>, ak@suse.de
Cc: akpm@osdl.org, linux-mm@kvack.org
Subject: Re: numa api comments
Date: Mon, 19 Apr 2004 15:23:55 -0700 [thread overview]
Message-ID: <295360000.1082413435@flay> (raw)
In-Reply-To: <20040419195447.GA5900@lst.de>
> - the
>
> if (unlikely(order >= MAX_ORDER))
> return NULL;
>
> in alloc_pages_node and your new alloc_pages should probably move
> into __alloc_pages, thus making alloc_pages_current as an entinity
> of it's own superflous. It's naming is rather strange anyway.
This comes up again and again, it probably needs a big fat comment to
explain itself (I know I've asked the same before at least once ;-)).
The alloc_pages wrapper bit is inlined, as order is normally a constant,
and thus that check will compile away 99% of the time. If we move it
into the main __alloc_pages function, it'll be another check in the
fastpath that we don't need most of the time.
> - can we please have a for_each_node() instead of mess like
>
> for (nd = find_first_bit(nodes, MAX_NUMNODES);
> nd < MAX_NUMNODES;
> nd = find_next_bit(nodes, MAX_NUMNODES, 1+nd)) {
I'd swear we had one of those already to iterate over 1 .. numnodes,
but I can't find it. Grrr.
M.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2004-04-19 22:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-19 19:54 Christoph Hellwig
2004-04-19 22:23 ` Martin J. Bligh [this message]
2004-04-20 11:16 ` Paul Jackson
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=295360000.1082413435@flay \
--to=mbligh@aracnet.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=hch@lst.de \
--cc=linux-mm@kvack.org \
/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