bury struct proc_ns in fs/proc
a) make get_proc_ns() return a pointer to struct ns_common
b) mirror ns_ops in dentry->d_fsdata of ns dentries, so that
is_mnt_ns_file() could get away with fewer dereferences.
That way struct proc_ns becomes invisible outside of fs/proc/*.c
Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- fs/namespace.c 2 additions, 11 deletionsfs/namespace.c
- fs/proc/internal.h 5 additions, 0 deletionsfs/proc/internal.h
- fs/proc/namespaces.c 4 additions, 3 deletionsfs/proc/namespaces.c
- include/linux/proc_ns.h 2 additions, 7 deletionsinclude/linux/proc_ns.h
- kernel/nsproxy.c 1 addition, 3 deletionskernel/nsproxy.c
- net/core/net_namespace.c 1 addition, 3 deletionsnet/core/net_namespace.c
Please register or sign in to comment