mm/ksm: move [set_]page_stable_node from ksm.h to ksm.c
[linux-2.6-microblaze.git] / include / linux / ksm.h
index 44368b1..161e816 100644 (file)
@@ -37,17 +37,6 @@ static inline void ksm_exit(struct mm_struct *mm)
                __ksm_exit(mm);
 }
 
-static inline struct stable_node *page_stable_node(struct page *page)
-{
-       return PageKsm(page) ? page_rmapping(page) : NULL;
-}
-
-static inline void set_page_stable_node(struct page *page,
-                                       struct stable_node *stable_node)
-{
-       page->mapping = (void *)((unsigned long)stable_node | PAGE_MAPPING_KSM);
-}
-
 /*
  * When do_swap_page() first faults in from swap what used to be a KSM page,
  * no problem, it will be assigned to this vma's anon_vma; but thereafter,
@@ -89,12 +78,6 @@ static inline struct page *ksm_might_need_to_copy(struct page *page,
        return page;
 }
 
-static inline int page_referenced_ksm(struct page *page,
-                       struct mem_cgroup *memcg, unsigned long *vm_flags)
-{
-       return 0;
-}
-
 static inline void rmap_walk_ksm(struct page *page,
                        struct rmap_walk_control *rwc)
 {