mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
page migraton: handle orphaned pages
Orphaned page might have fs-private metadata, the page is truncated. As the page hasn't mapping, page migration refuse to migrate the page. It appears the page is only freed in page reclaim and if zone watermark is low, the page is never freed, as a result migration always fail. I thought we could free the metadata so such page can be freed in migration and make migration more reliable. [[email protected]: go direct to try_to_free_buffers()] Signed-off-by: Shaohua Li <[email protected]> Acked-by: Nick Piggin <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7786fa9ac5
commit
62e1c55300
2 changed files with 25 additions and 7 deletions
|
|
@ -84,7 +84,7 @@ EXPORT_SYMBOL(cancel_dirty_page);
|
|||
|
||||
/*
|
||||
* If truncate cannot remove the fs-private metadata from the page, the page
|
||||
* becomes anonymous. It will be left on the LRU and may even be mapped into
|
||||
* becomes orphaned. It will be left on the LRU and may even be mapped into
|
||||
* user pagetables if we're racing with filemap_fault().
|
||||
*
|
||||
* We need to bale out if page->mapping is no longer equal to the original
|
||||
|
|
|
|||
Loading…
Reference in a new issue