mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 15:26:21 +09:00
make shmem_fill_super() static
... have callers use shmem_mount() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
df02450217
commit
7e30d2a5eb
|
@ -71,7 +71,7 @@ static struct dentry *dev_mount(struct file_system_type *fs_type, int flags,
|
||||||
const char *dev_name, void *data)
|
const char *dev_name, void *data)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_TMPFS
|
#ifdef CONFIG_TMPFS
|
||||||
return mount_nodev(fs_type, flags, data, shmem_fill_super);
|
return shmem_mount(fs_type, flags, dev_name, data);
|
||||||
#else
|
#else
|
||||||
return ramfs_mount(fs_type, flags, dev_name, data);
|
return ramfs_mount(fs_type, flags, dev_name, data);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -50,7 +50,8 @@ static inline struct shmem_inode_info *SHMEM_I(struct inode *inode)
|
||||||
* Functions in mm/shmem.c called directly from elsewhere:
|
* Functions in mm/shmem.c called directly from elsewhere:
|
||||||
*/
|
*/
|
||||||
extern int shmem_init(void);
|
extern int shmem_init(void);
|
||||||
extern int shmem_fill_super(struct super_block *sb, void *data, int silent);
|
extern struct dentry *shmem_mount(struct file_system_type *fs_type,
|
||||||
|
int flags, const char *dev_name, void *data);
|
||||||
extern struct file *shmem_file_setup(const char *name,
|
extern struct file *shmem_file_setup(const char *name,
|
||||||
loff_t size, unsigned long flags);
|
loff_t size, unsigned long flags);
|
||||||
extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,
|
extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,
|
||||||
|
|
|
@ -631,7 +631,7 @@ 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)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_TMPFS) && is_tmpfs)
|
if (IS_ENABLED(CONFIG_TMPFS) && is_tmpfs)
|
||||||
return mount_nodev(fs_type, flags, data, shmem_fill_super);
|
return shmem_mount(fs_type, flags, dev_name, data);
|
||||||
|
|
||||||
return ramfs_mount(fs_type, flags, dev_name, data);
|
return ramfs_mount(fs_type, flags, dev_name, data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3547,7 +3547,7 @@ static void shmem_put_super(struct super_block *sb)
|
||||||
sb->s_fs_info = NULL;
|
sb->s_fs_info = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int shmem_fill_super(struct super_block *sb, void *data, int silent)
|
static int shmem_fill_super(struct super_block *sb, void *data, int silent)
|
||||||
{
|
{
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct shmem_sb_info *sbinfo;
|
struct shmem_sb_info *sbinfo;
|
||||||
|
@ -3759,7 +3759,7 @@ static const struct vm_operations_struct shmem_vm_ops = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct dentry *shmem_mount(struct file_system_type *fs_type,
|
struct dentry *shmem_mount(struct file_system_type *fs_type,
|
||||||
int flags, const char *dev_name, void *data)
|
int flags, const char *dev_name, void *data)
|
||||||
{
|
{
|
||||||
return mount_nodev(fs_type, flags, data, shmem_fill_super);
|
return mount_nodev(fs_type, flags, data, shmem_fill_super);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user