]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - mm/page_cgroup.c
Fix bug
[can-eth-gw-linux.git] / mm / page_cgroup.c
index eb750f851395b4e726c06f3926d42b472ab1bdf9..6d757e3a872ad52adea55aabecee1ec571c3970d 100644 (file)
@@ -251,6 +251,9 @@ static int __meminit page_cgroup_callback(struct notifier_block *self,
                                mn->nr_pages, mn->status_change_nid);
                break;
        case MEM_CANCEL_ONLINE:
+               offline_page_cgroup(mn->start_pfn,
+                               mn->nr_pages, mn->status_change_nid);
+               break;
        case MEM_GOING_OFFLINE:
                break;
        case MEM_ONLINE:
@@ -271,7 +274,7 @@ void __init page_cgroup_init(void)
        if (mem_cgroup_disabled())
                return;
 
-       for_each_node_state(nid, N_HIGH_MEMORY) {
+       for_each_node_state(nid, N_MEMORY) {
                unsigned long start_pfn, end_pfn;
 
                start_pfn = node_start_pfn(nid);
@@ -317,7 +320,7 @@ void __meminit pgdat_page_cgroup_init(struct pglist_data *pgdat)
 #endif
 
 
-#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
+#ifdef CONFIG_MEMCG_SWAP
 
 static DEFINE_MUTEX(swap_cgroup_mutex);
 struct swap_cgroup_ctrl {