diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 42536c737d9c..4ec712967f7c 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -60,6 +60,10 @@ static inline void mem_cgroup_uncharge_page(struct page *page) | |||
60 | mem_cgroup_uncharge(page_get_page_cgroup(page)); | 60 | mem_cgroup_uncharge(page_get_page_cgroup(page)); |
61 | } | 61 | } |
62 | 62 | ||
63 | extern int mem_cgroup_prepare_migration(struct page *page); | ||
64 | extern void mem_cgroup_end_migration(struct page *page); | ||
65 | extern void mem_cgroup_page_migration(struct page *page, struct page *newpage); | ||
66 | |||
63 | #else /* CONFIG_CGROUP_MEM_CONT */ | 67 | #else /* CONFIG_CGROUP_MEM_CONT */ |
64 | static inline void mm_init_cgroup(struct mm_struct *mm, | 68 | static inline void mm_init_cgroup(struct mm_struct *mm, |
65 | struct task_struct *p) | 69 | struct task_struct *p) |
@@ -117,6 +121,21 @@ static inline int task_in_mem_cgroup(struct task_struct *task, | |||
117 | return 1; | 121 | return 1; |
118 | } | 122 | } |
119 | 123 | ||
124 | static inline int mem_cgroup_prepare_migration(struct page *page) | ||
125 | { | ||
126 | return 0; | ||
127 | } | ||
128 | |||
129 | static inline void mem_cgroup_end_migration(struct page *page) | ||
130 | { | ||
131 | } | ||
132 | |||
133 | static inline void | ||
134 | mem_cgroup_page_migration(struct page *page, struct page *newpage) | ||
135 | { | ||
136 | } | ||
137 | |||
138 | |||
120 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 139 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
121 | 140 | ||
122 | #endif /* _LINUX_MEMCONTROL_H */ | 141 | #endif /* _LINUX_MEMCONTROL_H */ |