aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/shmem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index f6d350e8adc5..47fdeeb9d636 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2538,16 +2538,16 @@ static const struct vm_operations_struct shmem_vm_ops = {
2538}; 2538};
2539 2539
2540 2540
2541static int shmem_get_sb(struct file_system_type *fs_type, 2541static struct dentry *shmem_mount(struct file_system_type *fs_type,
2542 int flags, const char *dev_name, void *data, struct vfsmount *mnt) 2542 int flags, const char *dev_name, void *data)
2543{ 2543{
2544 return get_sb_nodev(fs_type, flags, data, shmem_fill_super, mnt); 2544 return mount_nodev(fs_type, flags, data, shmem_fill_super);
2545} 2545}
2546 2546
2547static struct file_system_type tmpfs_fs_type = { 2547static struct file_system_type tmpfs_fs_type = {
2548 .owner = THIS_MODULE, 2548 .owner = THIS_MODULE,
2549 .name = "tmpfs", 2549 .name = "tmpfs",
2550 .get_sb = shmem_get_sb, 2550 .mount = shmem_mount,
2551 .kill_sb = kill_litter_super, 2551 .kill_sb = kill_litter_super,
2552}; 2552};
2553 2553
@@ -2643,7 +2643,7 @@ out:
2643 2643
2644static struct file_system_type tmpfs_fs_type = { 2644static struct file_system_type tmpfs_fs_type = {
2645 .name = "tmpfs", 2645 .name = "tmpfs",
2646 .get_sb = ramfs_get_sb, 2646 .mount = ramfs_mount,
2647 .kill_sb = kill_litter_super, 2647 .kill_sb = kill_litter_super,
2648}; 2648};
2649 2649