diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-10 19:30:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 13:28:33 -0400 |
commit | e74a0effffbbea75fe2b6770948f84fcb0917cdd (patch) | |
tree | 63b98a1e71e77ebf850f781d2b0af949319e8171 /fs/proc/root.c | |
parent | 2f8974243507d9e5b0f214d7668a59a66b93f36c (diff) |
proc: move /proc/sysvipc creation to where it belongs
Move the proc_mkdir() call within the sysvipc subsystem such that we
avoid polluting proc_root_init() with petty cpp.
[dave@stgolabs.net: contributed changelog]
Link: http://lkml.kernel.org/r/20180216161732.GA10297@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r-- | fs/proc/root.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index ede8e64974be..4a19e02c7ed0 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -136,10 +136,6 @@ void __init proc_root_init(void) | |||
136 | proc_symlink("mounts", NULL, "self/mounts"); | 136 | proc_symlink("mounts", NULL, "self/mounts"); |
137 | 137 | ||
138 | proc_net_init(); | 138 | proc_net_init(); |
139 | |||
140 | #ifdef CONFIG_SYSVIPC | ||
141 | proc_mkdir("sysvipc", NULL); | ||
142 | #endif | ||
143 | proc_mkdir("fs", NULL); | 139 | proc_mkdir("fs", NULL); |
144 | proc_mkdir("driver", NULL); | 140 | proc_mkdir("driver", NULL); |
145 | proc_create_mount_point("fs/nfsd"); /* somewhere for the nfsd filesystem to be mounted */ | 141 | proc_create_mount_point("fs/nfsd"); /* somewhere for the nfsd filesystem to be mounted */ |