]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - mm/page_cgroup.c
memory-hotplug: auto offline page_cgroup when onlining memory block failed
[~shefty/rdma-dev.git] / mm / page_cgroup.c
index 5ddad0c6daa6c6c23c3e0f03b55e13c79d061a59..44db00e253ed35f7b4909ab7c151a6af145c0210 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: