diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/memcontrol.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index c592f315cd02..b095f5f6ecf7 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -29,8 +29,6 @@ struct mm_struct; | |||
29 | 29 | ||
30 | extern int mem_cgroup_newpage_charge(struct page *page, struct mm_struct *mm, | 30 | extern int mem_cgroup_newpage_charge(struct page *page, struct mm_struct *mm, |
31 | gfp_t gfp_mask); | 31 | gfp_t gfp_mask); |
32 | extern int mem_cgroup_charge_migrate_fixup(struct page *page, | ||
33 | struct mm_struct *mm, gfp_t gfp_mask); | ||
34 | /* for swap handling */ | 32 | /* for swap handling */ |
35 | extern int mem_cgroup_try_charge(struct mm_struct *mm, | 33 | extern int mem_cgroup_try_charge(struct mm_struct *mm, |
36 | gfp_t gfp_mask, struct mem_cgroup **ptr); | 34 | gfp_t gfp_mask, struct mem_cgroup **ptr); |
@@ -60,8 +58,9 @@ extern struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p); | |||
60 | ((cgroup) == mem_cgroup_from_task((mm)->owner)) | 58 | ((cgroup) == mem_cgroup_from_task((mm)->owner)) |
61 | 59 | ||
62 | extern int | 60 | extern int |
63 | mem_cgroup_prepare_migration(struct page *page, struct page *newpage); | 61 | mem_cgroup_prepare_migration(struct page *page, struct mem_cgroup **ptr); |
64 | extern void mem_cgroup_end_migration(struct page *page); | 62 | extern void mem_cgroup_end_migration(struct mem_cgroup *mem, |
63 | struct page *oldpage, struct page *newpage); | ||
65 | 64 | ||
66 | /* | 65 | /* |
67 | * For memory reclaim. | 66 | * For memory reclaim. |
@@ -94,12 +93,6 @@ static inline int mem_cgroup_cache_charge(struct page *page, | |||
94 | return 0; | 93 | return 0; |
95 | } | 94 | } |
96 | 95 | ||
97 | static inline int mem_cgroup_charge_migrate_fixup(struct page *page, | ||
98 | struct mm_struct *mm, gfp_t gfp_mask) | ||
99 | { | ||
100 | return 0; | ||
101 | } | ||
102 | |||
103 | static inline int mem_cgroup_try_charge(struct mm_struct *mm, | 96 | static inline int mem_cgroup_try_charge(struct mm_struct *mm, |
104 | gfp_t gfp_mask, struct mem_cgroup **ptr) | 97 | gfp_t gfp_mask, struct mem_cgroup **ptr) |
105 | { | 98 | { |
@@ -144,12 +137,14 @@ static inline int task_in_mem_cgroup(struct task_struct *task, | |||
144 | } | 137 | } |
145 | 138 | ||
146 | static inline int | 139 | static inline int |
147 | mem_cgroup_prepare_migration(struct page *page, struct page *newpage) | 140 | mem_cgroup_prepare_migration(struct page *page, struct mem_cgroup **ptr) |
148 | { | 141 | { |
149 | return 0; | 142 | return 0; |
150 | } | 143 | } |
151 | 144 | ||
152 | static inline void mem_cgroup_end_migration(struct page *page) | 145 | static inline void mem_cgroup_end_migration(struct mem_cgroup *mem, |
146 | struct page *oldpage, | ||
147 | struct page *newpage) | ||
153 | { | 148 | { |
154 | } | 149 | } |
155 | 150 | ||