diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-06-02 00:51:15 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-09-05 20:34:27 +0200 |
commit | df02450217c98e01b8b22f805314470df71f2b9b (patch) | |
tree | d8d017e9d3a795bc47514f1ed480d3e737642901 /init | |
parent | devtmpfs: don't mix {ramfs,shmem}_fill_super() with mount_single() (diff) | |
download | linux-df02450217c98e01b8b22f805314470df71f2b9b.tar.xz linux-df02450217c98e01b8b22f805314470df71f2b9b.zip |
make ramfs_fill_super() static
all users should just call ramfs_mount()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'init')
-rw-r--r-- | init/do_mounts.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 53cb37b66227..baedc2ef579e 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -630,12 +630,10 @@ static bool is_tmpfs; static struct dentry *rootfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { - void *fill = ramfs_fill_super; - if (IS_ENABLED(CONFIG_TMPFS) && is_tmpfs) - fill = shmem_fill_super; + return mount_nodev(fs_type, flags, data, shmem_fill_super); - return mount_nodev(fs_type, flags, data, fill); + return ramfs_mount(fs_type, flags, dev_name, data); } struct file_system_type rootfs_fs_type = { |