From: William Lee Irwin III <wli@holomorphy.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Rik van Riel <riel@conectiva.com.br>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] for_each_zone / for_each_pgdat
Date: Mon, 15 Apr 2002 16:20:58 -0700 [thread overview]
Message-ID: <20020415232058.GO21206@holomorphy.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0204151400200.13034-100000@penguin.transmeta.com> <Pine.LNX.4.33.0204151415110.15353-100000@penguin.transmeta.com>
On Mon, 15 Apr 2002, Linus Torvalds wrote:
>> Which requires the user to use something like
>>
>> for_each_zone(zone) {
>> ...
>> } end_zone;
Ow... this is exactly what I was trying to avoid.
On Mon, Apr 15, 2002 at 02:17:22PM -0700, Linus Torvalds wrote:
> Side note: I should probably have made this the standard notation for the
> "for_each_xxx ()" macros, because having an "end_xxx" macro means that you
> can start using things like "do { ... } while (x)" loops for the control
> flow, which is often easier for the compiler to optimize (ie if the first
> element is always valid, and you don't need a condition going in, which is
> often true).
> It does, of course, end up polluting the name-space a bit more.
> Linus
This is typically either the outer loop or used in things that just aren't
time critical (at least not in comparison to deeper loop nesting levels).
This isn't my magnum opus by a longshot (or at least I hope it isn't) so
I won't scream too loud, but I think it's pretty much done right as is.
Cheers,
Bill
next prev parent reply other threads:[~2002-04-15 23:24 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 15:49 [PATCH] for_each_zone / for_each_pgdat Rik van Riel
2002-04-15 20:49 ` Linus Torvalds
2002-04-15 20:58 ` Rik van Riel
2002-04-15 21:08 ` Linus Torvalds
2002-04-15 21:17 ` Linus Torvalds
2002-04-15 23:20 ` William Lee Irwin III [this message]
2002-04-16 0:44 ` Andrea Arcangeli
2002-04-16 1:30 ` Mike Fedyk
2002-04-16 4:27 ` Rik van Riel
2002-04-16 13:36 ` Andrea Arcangeli
2002-04-16 13:44 ` Andrea Arcangeli
2002-04-16 16:39 ` Mike Fedyk
2002-04-16 14:00 ` Bill Davidsen
2002-04-16 18:19 ` Mike Fedyk
2002-04-16 4:22 ` Marcelo Tosatti
2002-04-16 14:50 ` Oliver Xymoron
2002-04-16 14:56 ` Rik van Riel
2002-04-16 15:26 ` Oliver Xymoron
2002-04-16 15:46 ` J.A. Magallon
2002-04-15 21:18 ` Christoph Hellwig
2002-04-15 21:47 ` Rik van Riel
2002-04-15 22:19 ` Martin J. Bligh
-- strict thread matches above, loose matches on Subject: below --
2002-04-12 0:25 Rik van Riel
2002-04-18 9:41 ` Pavel Machek
2002-04-11 18:23 Rik van Riel
2002-04-11 18:54 ` Rik van Riel
2002-04-12 0:07 ` Rik van Riel
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=20020415232058.GO21206@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
--cc=torvalds@transmeta.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