diff options
Diffstat (limited to 'mm/page_cgroup.c')
-rw-r--r-- | mm/page_cgroup.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c index 1223d927904d..436c00229e70 100644 --- a/mm/page_cgroup.c +++ b/mm/page_cgroup.c | |||
@@ -21,7 +21,7 @@ static unsigned long total_usage; | |||
21 | #if !defined(CONFIG_SPARSEMEM) | 21 | #if !defined(CONFIG_SPARSEMEM) |
22 | 22 | ||
23 | 23 | ||
24 | void __init pgdat_page_cgroup_init(struct pglist_data *pgdat) | 24 | void __meminit pgdat_page_cgroup_init(struct pglist_data *pgdat) |
25 | { | 25 | { |
26 | pgdat->node_page_cgroup = NULL; | 26 | pgdat->node_page_cgroup = NULL; |
27 | } | 27 | } |
@@ -97,7 +97,8 @@ struct page_cgroup *lookup_page_cgroup(struct page *page) | |||
97 | return section->page_cgroup + pfn; | 97 | return section->page_cgroup + pfn; |
98 | } | 98 | } |
99 | 99 | ||
100 | int __meminit init_section_page_cgroup(unsigned long pfn) | 100 | /* __alloc_bootmem...() is protected by !slab_available() */ |
101 | int __init_refok init_section_page_cgroup(unsigned long pfn) | ||
101 | { | 102 | { |
102 | struct mem_section *section; | 103 | struct mem_section *section; |
103 | struct page_cgroup *base, *pc; | 104 | struct page_cgroup *base, *pc; |
@@ -158,7 +159,7 @@ void __free_page_cgroup(unsigned long pfn) | |||
158 | } | 159 | } |
159 | } | 160 | } |
160 | 161 | ||
161 | int online_page_cgroup(unsigned long start_pfn, | 162 | int __meminit online_page_cgroup(unsigned long start_pfn, |
162 | unsigned long nr_pages, | 163 | unsigned long nr_pages, |
163 | int nid) | 164 | int nid) |
164 | { | 165 | { |
@@ -183,7 +184,7 @@ int online_page_cgroup(unsigned long start_pfn, | |||
183 | return -ENOMEM; | 184 | return -ENOMEM; |
184 | } | 185 | } |
185 | 186 | ||
186 | int offline_page_cgroup(unsigned long start_pfn, | 187 | int __meminit offline_page_cgroup(unsigned long start_pfn, |
187 | unsigned long nr_pages, int nid) | 188 | unsigned long nr_pages, int nid) |
188 | { | 189 | { |
189 | unsigned long start, end, pfn; | 190 | unsigned long start, end, pfn; |
@@ -197,7 +198,7 @@ int offline_page_cgroup(unsigned long start_pfn, | |||
197 | 198 | ||
198 | } | 199 | } |
199 | 200 | ||
200 | static int page_cgroup_callback(struct notifier_block *self, | 201 | static int __meminit page_cgroup_callback(struct notifier_block *self, |
201 | unsigned long action, void *arg) | 202 | unsigned long action, void *arg) |
202 | { | 203 | { |
203 | struct memory_notify *mn = arg; | 204 | struct memory_notify *mn = arg; |
@@ -248,7 +249,7 @@ void __init page_cgroup_init(void) | |||
248 | " want\n"); | 249 | " want\n"); |
249 | } | 250 | } |
250 | 251 | ||
251 | void __init pgdat_page_cgroup_init(struct pglist_data *pgdat) | 252 | void __meminit pgdat_page_cgroup_init(struct pglist_data *pgdat) |
252 | { | 253 | { |
253 | return; | 254 | return; |
254 | } | 255 | } |