mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
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>
This commit is contained in:
parent
33a938774f
commit
28bd65781c
1 changed files with 1 additions and 1 deletions
|
@ -888,7 +888,7 @@ out:
|
|||
* are movable anymore because to has become empty
|
||||
* or no retryable pages exist anymore.
|
||||
* Caller should call putback_lru_pages to return pages to the LRU
|
||||
* or free list.
|
||||
* or free list only if ret != 0.
|
||||
*
|
||||
* Return: Number of pages not migrated or error code.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue