mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] Swapless page migration: modify core logic
Use the migration entries for page migration This modifies the migration code to use the new migration entries. It now becomes possible to migrate anonymous pages without having to add a swap entry. We add a couple of new functions to replace migration entries with the proper ptes. We cannot take the tree_lock for migrating anonymous pages anymore. However, we know that we hold the only remaining reference to the page when the page count reaches 1. Signed-off-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
d75a0fcda2
commit
6c5240ae7f
2 changed files with 23 additions and 34 deletions
|
|
@ -138,8 +138,8 @@ config SPLIT_PTLOCK_CPUS
|
|||
#
|
||||
config MIGRATION
|
||||
bool "Page migration"
|
||||
def_bool y if NUMA
|
||||
depends on SWAP && NUMA
|
||||
def_bool y
|
||||
depends on NUMA
|
||||
help
|
||||
Allows the migration of the physical location of pages of processes
|
||||
while the virtual addresses are not changed. This is useful for
|
||||
|
|
|
|||
Loading…
Reference in a new issue