From: "Figo.zhang" <figo1802@gmail.com>
To: lkml <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH]mm/migrate.c: clean up comment
Date: Sat, 07 May 2011 00:03:11 +0800 [thread overview]
Message-ID: <1304697799.2450.9.camel@figo-desktop> (raw)
clean up comment. prepare cgroup return 0 or -ENOMEN, others return -EAGAIN.
avoid conflict meanings.
Signed-off-by: Figo.zhang <figo1802@gmail.com>
---
mm/migrate.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/mm/migrate.c b/mm/migrate.c
index 34132f8..d65b351 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -647,7 +647,6 @@ static int unmap_and_move(new_page_t get_new_page, unsigned long private,
if (unlikely(split_huge_page(page)))
goto move_newpage;
- /* prepare cgroup just returns 0 or -ENOMEM */
rc = -EAGAIN;
if (!trylock_page(page)) {
@@ -687,7 +686,7 @@ static int unmap_and_move(new_page_t get_new_page, unsigned long private,
goto unlock;
}
- /* charge against new page */
+ /* charge against new page, return 0 or -ENOMEM */
charge = mem_cgroup_prepare_migration(page, newpage, &mem, GFP_KERNEL);
if (charge == -ENOMEM) {
rc = -ENOMEM;
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2011-05-06 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 16:03 Figo.zhang [this message]
2011-05-09 21:13 ` [PATCH]mm/migrate.c: clean up comment Andrew Morton
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=1304697799.2450.9.camel@figo-desktop \
--to=figo1802@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).