summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMatt Mackall <mpm@selenic.com>2008-02-04 22:29:00 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 09:44:16 -0800
commit698dd4ba6b12e34e1e432c944c01478c0b2cd773 (patch)
treefe524e3ae12b54968b363314ad45841abbd55d98 /mm
parent824552574162ac00ae636fa41386b1072379ea4a (diff)
downloadop-kernel-dev-698dd4ba6b12e34e1e432c944c01478c0b2cd773.zip
op-kernel-dev-698dd4ba6b12e34e1e432c944c01478c0b2cd773.tar.gz
maps4: move is_swap_pte
Move is_swap_pte helper function to swapops.h for use by pagemap code Signed-off-by: Matt Mackall <mpm@selenic.com> Cc: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/migrate.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 6a207e8..4ee4cca 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -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
*/
OpenPOWER on IntegriCloud