maps4: move is_swap_pte

Move is_swap_pte helper function to swapops.h for use by pagemap code

Signed-off-by: Matt Mackall <[email protected]>
Cc: Dave Hansen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Matt Mackall 2008-02-04 22:29:00 -08:00 • committed by Linus Torvalds
commit 698dd4ba6b
2 changed files with 6 additions and 5 deletions

View file

@ -115,11 +115,6 @@ int putback_lru_pages(struct list_head *l)
return count;
}
static inline int is_swap_pte(pte_t pte)
{
return !pte_none(pte) && !pte_present(pte) && !pte_file(pte);
}
/*
* Restore a potential migration pte to a working pte entry
*/