Re: [PATCH] for_each_zone / for_each_pgdat

J.A. Magallon
2002-04-16T15:46:19Z

On 2002.04.16 Rik van Riel wrote:
>On Tue, 16 Apr 2002, Oliver Xymoron wrote:
>> On Mon, 15 Apr 2002, Linus Torvalds wrote:
>> > On Mon, 15 Apr 2002, Linus Torvalds wrote:
>> > >
>> > > Which requires the user to use something like
>> > >
>> > > for_each_zone(zone) {
>> > > ...
>> > > } end_zone;
>
>> Ugh. If we're going to use such ugly things, it would be nice if they were
>> do_zone/while_zone instead of being suggestive of a for loop.
>
>Ummm, it _is_ a for loop.
>

Perhaps a silly change like

for_all_zone -> forall_zone
for_all_page -> forall_page

changes the point of view of some people. Some languages implement a 'forall'
iteration. And looks better...

--
J.A. Magallon # Let the source be with you...
mailto:jamagallon@able.es
Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre6-jam2 #2 SMP Tue Apr 16 00:29:36 CEST 2002 i686