mm: remove SWAP_AGAIN in ttu
authorMinchan Kim <[email protected]>
Wed, 3 May 2017 21:54:17 +0000 (14:54 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 May 2017 22:52:10 +0000 (15:52 -0700)
commit33fc80e2574737e6e21eecc4c1d7942370a2c752
treeee10306d5b2bf35138563377b7f77d89e689855f
parentad6b67041a45497261617d7a28b15159b202cb5a
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]>
mm/rmap.c
mm/vmscan.c