lkml.org 
[lkml]   [2009]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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>


\
 
 \ /
  Last update: 2009-02-10 11:41    [W:0.050 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site