mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
[PATCH] Direct Migration V9: remove_from_swap() to remove swap ptes
Add remove_from_swap remove_from_swap() allows the restoration of the pte entries that existed before page migration occurred for anonymous pages by walking the reverse maps. This reduces swap use and establishes regular pte's without the need for page faults. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a48d07afdf
commit
a3351e525e
@@ -248,6 +248,7 @@ extern int remove_exclusive_swap_page(struct page *);
|
||||
struct backing_dev_info;
|
||||
|
||||
extern spinlock_t swap_lock;
|
||||
extern int remove_vma_swap(struct vm_area_struct *vma, struct page *page);
|
||||
|
||||
/* linux/mm/thrash.c */
|
||||
extern struct mm_struct * swap_token_mm;
|
||||
|
||||
Reference in New Issue
Block a user