diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-28 03:15:12 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-28 03:15:12 -0700 |
| commit | a4b065fa174587acdd241c461a724f647711c2fd (patch) | |
| tree | f41a1660c13569ca7ef36c7c35598447ebb91e8e /kernel | |
| parent | f183c478d32d866b7018a9980eb4b61975b8f1fb (diff) | |
[PATCH] for_each_zone macro
Patch from Robert Love.
Attached patch implements for_each_zone(zont_t *) which is a helper
macro to cleanup code of the form:
for (pgdat = pgdat_list; pgdat; pgdat = pgdat->node_next) {
for (i = 0; i < MAX_NR_ZONES; ++i) {
zone_t * z = pgdat->node_zones + i;
/* ... */
}
}
and replace it with:
for_each_zone(zone) {
/* ... */
}
This patch only replaces one use of the above loop with the new macro.
Pending code, however, currently in the full rmap patch uses
for_each_zone more extensively.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
