Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 16 Apr 2002 10:51:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 16 Apr 2002 10:51:48 -0400 Received: from waste.org ([209.173.204.2]:51122 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Tue, 16 Apr 2002 10:51:47 -0400 Date: Tue, 16 Apr 2002 09:50:57 -0500 (CDT) From: Oliver Xymoron To: Linus Torvalds cc: Rik van Riel , , Subject: Re: [PATCH] for_each_zone / for_each_pgdat In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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; > > 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. 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. -- "Love the dolphins," she advised him. "Write by W.A.S.T.E.." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/