Messages in this thread | | | Date | Tue, 10 Feb 2009 11:37:32 +0100 | From | Johannes Weiner <> | Subject | Re: [PATCH] introduce for_each_populated_zone() macro |
| |
On Tue, Feb 10, 2009 at 04:39:13PM +0900, KOSAKI Motohiro wrote: > > Impact: cleanup > > In almost case, for_each_zone() is used with populated_zone(). > It's because almost function doesn't need memoryless node information. > Therefore, for_each_populated_zone() can help to make code simplify. > > This patch doesn't have any functional change. > > Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > Cc: Mel Gorman <mel@csn.ul.ie> > --- > include/linux/mmzone.h | 11 +++++++++++ > kernel/power/snapshot.c | 9 +++------ > kernel/power/swsusp.c | 17 ++++++++--------- > mm/page_alloc.c | 26 +++++--------------------- > mm/vmscan.c | 6 +----- > mm/vmstat.c | 11 ++--------- > 6 files changed, 30 insertions(+), 50 deletions(-)
Nice!
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
| |