mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm: when migrate_pages returns 0, all pages must have been released
In some cases migrate_pages could return zero while still leaving a few pages in the pagelist (and some caller wouldn't notice it has to call putback_lru_pages after commitcf608ac19c("mm: compaction: fix COMPACTPAGEFAILED counting")). Add one missing putback_lru_pages not added by commitcf608ac19c("mm: compaction: fix COMPACTPAGEFAILED counting"). Signed-off-by: Andrea Arcangeli <[email protected]> Signed-off-by: Minchan Kim <[email protected]> Reviewed-by: Minchan Kim <[email protected]> Cc: Christoph Lameter <[email protected]> Acked-by: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
552b372ba9
commit
57fc4a5ee3
2 changed files with 2 additions and 2 deletions
|
|
@ -772,6 +772,7 @@ uncharge:
|
|||
unlock:
|
||||
unlock_page(page);
|
||||
|
||||
move_newpage:
|
||||
if (rc != -EAGAIN) {
|
||||
/*
|
||||
* A page that has been migrated has all references
|
||||
|
|
@ -785,8 +786,6 @@ unlock:
|
|||
putback_lru_page(page);
|
||||
}
|
||||
|
||||
move_newpage:
|
||||
|
||||
/*
|
||||
* Move the new page to the LRU. If migration was not successful
|
||||
* then this will free the page.
|
||||
|
|
|
|||
Loading…
Reference in a new issue