Re: [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
- From: Christoph Lameter <clameter@xxxxxxx>
- Date: Wed, 12 Sep 2007 14:23:19 -0700 (PDT)
On Wed, 12 Sep 2007, Mel Gorman wrote:
- z++)
- ;
+ if (likely(nodes == NULL))
+ for (; zonelist_zone_idx(z) > highest_zoneidx;
+ z++)
+ ;
+ else
+ for (; zonelist_zone_idx(z) > highest_zoneidx ||
+ (z->zone && !zref_in_nodemask(z, nodes));
+ z++)
+ ;
Minor nitpick here: "for (;" should become "for ( ;" to have correct
whitespace. However, it would be clearer to use a while here.
while (zonelist_zone_idx(z)) > highest_zoneidx)
z++;
etc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
- From: Mel Gorman
- Re: [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
- References:
- [PATCH 0/6] Use one zonelist per node instead of multiple zonelists v6
- From: Mel Gorman
- [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
- From: Mel Gorman
- [PATCH 0/6] Use one zonelist per node instead of multiple zonelists v6
- Prev by Date: Re: r8169: can't send magic packet for Wake-On-Lan
- Next by Date: Re: [PATCH] Re: Kernel Panic - 2.6.23-rc4-mm1 ia64 - was Re: Update: [Automatic] NUMA replicated pagecache ...
- Previous by thread: [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
- Next by thread: Re: [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
- Index(es):