mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
make ramfs_fill_super() static
all users should just call ramfs_mount() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d401727ea0
commit
df02450217
3 changed files with 3 additions and 7 deletions
|
@ -217,7 +217,7 @@ static int ramfs_parse_options(char *data, struct ramfs_mount_opts *opts)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ramfs_fill_super(struct super_block *sb, void *data, int silent)
|
static int ramfs_fill_super(struct super_block *sb, void *data, int silent)
|
||||||
{
|
{
|
||||||
struct ramfs_fs_info *fsi;
|
struct ramfs_fs_info *fsi;
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
|
|
|
@ -20,6 +20,4 @@ extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
|
||||||
extern const struct file_operations ramfs_file_operations;
|
extern const struct file_operations ramfs_file_operations;
|
||||||
extern const struct vm_operations_struct generic_file_vm_ops;
|
extern const struct vm_operations_struct generic_file_vm_ops;
|
||||||
|
|
||||||
int ramfs_fill_super(struct super_block *sb, void *data, int silent);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -630,12 +630,10 @@ static bool is_tmpfs;
|
||||||
static struct dentry *rootfs_mount(struct file_system_type *fs_type,
|
static struct dentry *rootfs_mount(struct file_system_type *fs_type,
|
||||||
int flags, const char *dev_name, void *data)
|
int flags, const char *dev_name, void *data)
|
||||||
{
|
{
|
||||||
void *fill = ramfs_fill_super;
|
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_TMPFS) && is_tmpfs)
|
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 = {
|
struct file_system_type rootfs_fs_type = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue