mm: migration: clarify migrate_pages() comment
authorMinchan Kim <minchan.kim@gmail.com>
Tue, 25 Jan 2011 23:07:26 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 26 Jan 2011 00:50:02 +0000 (10:50 +1000)
commit28bd65781c848d95ba6a7f58b5c4b8265a804ec6
tree158a70f9b08644e1c3ca958dc376a853759e3745
parent33a938774fdb9933e9c77504b035f4f87c0859df
mm: migration: clarify migrate_pages() comment

Callers of migrate_pages should putback_lru_pages to return pages
isolated to LRU or free list.  Now comment is rather confusing.  It says
caller always have to call it.

It is more clear to point out that the caller has to call it if
migrate_pages's return value isn't zero.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c