vfs: split off vfsmount-related parts of vfs_kern_mount()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 18 Mar 2011 02:08:28 +0000 (22:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 18 Mar 2011 02:10:41 +0000 (22:10 -0400)
commit9d412a43c3b26e1e549319e5eec26f0829f9f74d
treeb6522b693564fed172e9f8aee2e42aa2fdd95c8a
parentfbe0aa1f3d16fac5b641c0c1697371dcbe45b569
vfs: split off vfsmount-related parts of vfs_kern_mount()

new function: mount_fs().  Does all work done by vfs_kern_mount()
except the allocation and filling of vfsmount; returns root dentry
or ERR_PTR().

vfs_kern_mount() switched to using it and taken to fs/namespace.c,
along with its wrappers.

alloc_vfsmnt()/free_vfsmnt() made static.

functions in namespace.c slightly reordered.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/internal.h
fs/namespace.c
fs/super.c