linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2]mm/migrate.c: clean up comment
@ 2011-05-10 13:13 Figo.zhang
  0 siblings, 0 replies; only message in thread
From: Figo.zhang @ 2011-05-10 13:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: lkml, linux-mm@kvack.org

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 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/mm/migrate.c b/mm/migrate.c
index 34132f8..5f137cd 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -624,6 +624,11 @@ static int move_to_new_page(struct page *newpage, struct page *page,
 /*
  * Obtain the lock on page, remove all ptes and migrate the page
  * to the newly allocated page in newpage.
+ * Return values:
+ * 0       - success
+ * -ENOMEM - error code
+ * -EBUSY  - error code
+ * -EAGAIN - try again
  */
 static int unmap_and_move(new_page_t get_new_page, unsigned long private,
 			struct page *page, int force, bool offlining, bool sync)
@@ -647,7 +652,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)) {


--
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>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-10 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 13:13 [PATCH v2]mm/migrate.c: clean up comment Figo.zhang

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).