diff options
Diffstat (limited to 'include/linux/ksm.h')
-rw-r--r-- | include/linux/ksm.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 3be6bb18562d..7ae216a39c9e 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h | |||
@@ -35,18 +35,6 @@ static inline void ksm_exit(struct mm_struct *mm) | |||
35 | __ksm_exit(mm); | 35 | __ksm_exit(mm); |
36 | } | 36 | } |
37 | 37 | ||
38 | /* | ||
39 | * A KSM page is one of those write-protected "shared pages" or "merged pages" | ||
40 | * which KSM maps into multiple mms, wherever identical anonymous page content | ||
41 | * is found in VM_MERGEABLE vmas. It's a PageAnon page, pointing not to any | ||
42 | * anon_vma, but to that page's node of the stable tree. | ||
43 | */ | ||
44 | static inline int PageKsm(struct page *page) | ||
45 | { | ||
46 | return ((unsigned long)page->mapping & PAGE_MAPPING_FLAGS) == | ||
47 | (PAGE_MAPPING_ANON | PAGE_MAPPING_KSM); | ||
48 | } | ||
49 | |||
50 | static inline struct stable_node *page_stable_node(struct page *page) | 38 | static inline struct stable_node *page_stable_node(struct page *page) |
51 | { | 39 | { |
52 | return PageKsm(page) ? page_rmapping(page) : NULL; | 40 | return PageKsm(page) ? page_rmapping(page) : NULL; |
@@ -87,11 +75,6 @@ static inline void ksm_exit(struct mm_struct *mm) | |||
87 | { | 75 | { |
88 | } | 76 | } |
89 | 77 | ||
90 | static inline int PageKsm(struct page *page) | ||
91 | { | ||
92 | return 0; | ||
93 | } | ||
94 | |||
95 | #ifdef CONFIG_MMU | 78 | #ifdef CONFIG_MMU |
96 | static inline int ksm_madvise(struct vm_area_struct *vma, unsigned long start, | 79 | static inline int ksm_madvise(struct vm_area_struct *vma, unsigned long start, |
97 | unsigned long end, int advice, unsigned long *vm_flags) | 80 | unsigned long end, int advice, unsigned long *vm_flags) |