memcg: enable accounting for new namesapces and struct nsproxy
[linux-2.6-block.git] / ipc / namespace.c
index 7bd0766ddc3b13809e5ae912c49d266816475338..ae83f0f2651b7dad5acb3d7210c8ef47d4cca6a3 100644 (file)
@@ -42,7 +42,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
                goto fail;
 
        err = -ENOMEM;
-       ns = kzalloc(sizeof(struct ipc_namespace), GFP_KERNEL);
+       ns = kzalloc(sizeof(struct ipc_namespace), GFP_KERNEL_ACCOUNT);
        if (ns == NULL)
                goto fail_dec;