mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] grab swap token reordered
Make sure the contention for the token happens _before_ any read-in and kicks the swap-token algo only when the VM is under pressure. Signed-off-by: Ashwin Chaugule <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cd54e7e543
commit
098fe651f7
2 changed files with 1 additions and 2 deletions
|
|
@ -1445,7 +1445,6 @@ no_cached_page:
|
|||
* effect.
|
||||
*/
|
||||
error = page_cache_read(file, pgoff);
|
||||
grab_swap_token();
|
||||
|
||||
/*
|
||||
* The page we want has now been added to the page cache.
|
||||
|
|
|
|||
Loading…
Reference in a new issue