init_rootfs(): don't bother with init_ramfs_fs()
the only thing done by the latter is making ramfs visible to mount(2); we don't need it there - rootfs is separate and, in fact, made visible to mount(2) in the same init_rootfs(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -266,12 +266,8 @@ static struct file_system_type ramfs_fs_type = {
|
||||
.fs_flags = FS_USERNS_MOUNT,
|
||||
};
|
||||
|
||||
int __init init_ramfs_fs(void)
|
||||
static int __init init_ramfs_fs(void)
|
||||
{
|
||||
static unsigned long once;
|
||||
|
||||
if (test_and_set_bit(0, &once))
|
||||
return 0;
|
||||
return register_filesystem(&ramfs_fs_type);
|
||||
}
|
||||
fs_initcall(init_ramfs_fs);
|
||||
|
Reference in New Issue
Block a user