mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: remove SWAP_AGAIN in ttu
In 2002, [1] introduced SWAP_AGAIN. At that time, try_to_unmap_one used
spin_trylock(&mm->page_table_lock) so it's really easy to contend and
fail to hold a lock so SWAP_AGAIN to keep LRU status makes sense.
However, now we changed it to mutex-based lock and be able to block
without skip pte so there is few of small window to return SWAP_AGAIN so
remove SWAP_AGAIN and just return SWAP_FAIL.
[1] c48c43e, minimal rmap
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ad6b67041a
commit
33fc80e257
2 changed files with 3 additions and 10 deletions
|
|
@ -1150,8 +1150,6 @@ static unsigned long shrink_page_list(struct list_head *page_list,
|
|||
case SWAP_FAIL:
|
||||
nr_unmap_fail++;
|
||||
goto activate_locked;
|
||||
case SWAP_AGAIN:
|
||||
goto keep_locked;
|
||||
case SWAP_SUCCESS:
|
||||
; /* try to free the page below */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue