diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-16 18:53:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-16 18:53:03 -0500 |
commit | 603ba7e41bf5d405aba22294af5d075d8898176d (patch) | |
tree | fb9cf0b7c4912b5105f7da5efdd204cd0e66c8db /init | |
parent | 31f48fc8f226f968d6e6b9b9718abe8e16c51fe8 (diff) | |
parent | 93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs pile #2 from Al Viro:
"Next pile (and there'll be one or two more).
The large piece in this one is getting rid of /proc/*/ns/* weirdness;
among other things, it allows to (finally) make nameidata completely
opaque outside of fs/namei.c, making for easier further cleanups in
there"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
coda_venus_readdir(): use file_inode()
fs/namei.c: fold link_path_walk() call into path_init()
path_init(): don't bother with LOOKUP_PARENT in argument
fs/namei.c: new helper (path_cleanup())
path_init(): store the "base" pointer to file in nameidata itself
make default ->i_fop have ->open() fail with ENXIO
make nameidata completely opaque outside of fs/namei.c
kill proc_ns completely
take the targets of /proc/*/ns/* symlinks to separate fs
bury struct proc_ns in fs/proc
copy address of proc_ns_ops into ns_common
new helpers: ns_alloc_inum/ns_free_inum
make proc_ns_operations work with struct ns_common * instead of void *
switch the rest of proc_ns_operations to working with &...->ns
netns: switch ->get()/->put()/->install()/->inum() to working with &net->ns
make mntns ->get()/->put()/->install()/->inum() work with &mnt_ns->ns
common object embedded into various struct ....ns
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 2 | ||||
-rw-r--r-- | init/version.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 747ecc4c0a19..61b993767db5 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -79,6 +79,7 @@ | |||
79 | #include <linux/random.h> | 79 | #include <linux/random.h> |
80 | #include <linux/list.h> | 80 | #include <linux/list.h> |
81 | #include <linux/integrity.h> | 81 | #include <linux/integrity.h> |
82 | #include <linux/proc_ns.h> | ||
82 | 83 | ||
83 | #include <asm/io.h> | 84 | #include <asm/io.h> |
84 | #include <asm/bugs.h> | 85 | #include <asm/bugs.h> |
@@ -665,6 +666,7 @@ asmlinkage __visible void __init start_kernel(void) | |||
665 | /* rootfs populating might need page-writeback */ | 666 | /* rootfs populating might need page-writeback */ |
666 | page_writeback_init(); | 667 | page_writeback_init(); |
667 | proc_root_init(); | 668 | proc_root_init(); |
669 | nsfs_init(); | ||
668 | cgroup_init(); | 670 | cgroup_init(); |
669 | cpuset_init(); | 671 | cpuset_init(); |
670 | taskstats_init_early(); | 672 | taskstats_init_early(); |
diff --git a/init/version.c b/init/version.c index 1a4718e500fe..fe41a63efed6 100644 --- a/init/version.c +++ b/init/version.c | |||
@@ -35,7 +35,10 @@ struct uts_namespace init_uts_ns = { | |||
35 | .domainname = UTS_DOMAINNAME, | 35 | .domainname = UTS_DOMAINNAME, |
36 | }, | 36 | }, |
37 | .user_ns = &init_user_ns, | 37 | .user_ns = &init_user_ns, |
38 | .proc_inum = PROC_UTS_INIT_INO, | 38 | .ns.inum = PROC_UTS_INIT_INO, |
39 | #ifdef CONFIG_UTS_NS | ||
40 | .ns.ops = &utsns_operations, | ||
41 | #endif | ||
39 | }; | 42 | }; |
40 | EXPORT_SYMBOL_GPL(init_uts_ns); | 43 | EXPORT_SYMBOL_GPL(init_uts_ns); |
41 | 44 | ||