common object embedded into various struct ....ns
[deliverable/linux.git] / kernel / user_namespace.c
index aa312b0dc3ec254a55bf77c37116170b301988e5..fde5840826739fa9ebc764c6b1f012f137b549be 100644 (file)
@@ -86,7 +86,7 @@ int create_user_ns(struct cred *new)
        if (!ns)
                return -ENOMEM;
 
-       ret = proc_alloc_inum(&ns->proc_inum);
+       ret = proc_alloc_inum(&ns->ns.inum);
        if (ret) {
                kmem_cache_free(user_ns_cachep, ns);
                return ret;
@@ -136,7 +136,7 @@ void free_user_ns(struct user_namespace *ns)
 #ifdef CONFIG_PERSISTENT_KEYRINGS
                key_put(ns->persistent_keyring_register);
 #endif
-               proc_free_inum(ns->proc_inum);
+               proc_free_inum(ns->ns.inum);
                kmem_cache_free(user_ns_cachep, ns);
                ns = parent;
        } while (atomic_dec_and_test(&parent->count));
@@ -891,7 +891,7 @@ static int userns_install(struct nsproxy *nsproxy, void *ns)
 static unsigned int userns_inum(void *ns)
 {
        struct user_namespace *user_ns = ns;
-       return user_ns->proc_inum;
+       return user_ns->ns.inum;
 }
 
 const struct proc_ns_operations userns_operations = {
This page took 0.024236 seconds and 5 git commands to generate.