From: Pavel Machek <pavel@ucw.cz>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: linux-mm <linux-mm@kvack.org>, Dave Hansen <haveblue@us.ibm.com>
Subject: Re: [PATCH] [RFC] for_each_page_in_zone [1/1]
Date: Fri, 24 Feb 2006 11:52:20 +0100 [thread overview]
Message-ID: <20060224105220.GA1662@elf.ucw.cz> (raw)
In-Reply-To: <20060224171518.29bae84b.kamezawa.hiroyu@jp.fujitsu.com>
Hi!
> This patch defines for_each_page_in_zone() macro. This replaces
> routine like this:
> ==from==
> for(i = 0; i < zone->zone_spanned_pages; i++) {
> if (!pfn_valid(pfn + i))
> continue;
> page = pfn_to_page(zone->zone_start_pfn + i);
> .....
> ==
> ==to==
> for_each_page_in_zone(page,zone) {
> ....
> }
> ==
> This can be used by many places in kernel/power/snapshot.c
>
> This patch is against 2.6.16-rc4-mm1 and has no dependency to other pathces.
> I did compile test and booted, but I don't have a hardware which touches codes
> I modified. so...please check.
Patch looks good to me. I'll try it later today.
> Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>
> Index: testtree/include/linux/mmzone.h
> ===================================================================
> --- testtree.orig/include/linux/mmzone.h
> +++ testtree/include/linux/mmzone.h
> @@ -472,6 +472,26 @@ extern struct pglist_data contig_page_da
>
> #endif /* !CONFIG_NEED_MULTIPLE_NODES */
>
> +/*
> + * these function uses suitable algorythm for each memory model
"These functions use suitable algorithm for each memory model"?
Pavel
--
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2006-02-24 10:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 8:15 KAMEZAWA Hiroyuki
2006-02-24 10:52 ` Pavel Machek [this message]
2006-02-24 11:59 ` KAMEZAWA Hiroyuki
2006-02-24 15:43 ` Dave Hansen
2006-02-25 1:24 ` KAMEZAWA Hiroyuki
2006-02-25 1:31 ` KAMEZAWA Hiroyuki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060224105220.GA1662@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=haveblue@us.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox