Merge branch 'work.aio' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-block.git] / include / linux / ksm.h
index 44368b19b27e11e848ced6348c4e747396c23b6b..161e8164abcf535f30417593b055e3c3c5acf564 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)
 {