History

convert get_sb_single() users

Al Viro committed 16 years ago

Commit fc14f2f1 parent 848b83a25 files · +147 −139Browse files

Showing the changes to drivers/base/devtmpfs.c (1 of 25 files). Show all

Unified · Split

drivers/base/devtmpfs.c+9−9
@@ -29,33 +29,33 @@ · 28 unmodified lines
2929 static struct vfsmount *dev_mnt;
3030
3131 #if defined CONFIG_DEVTMPFS_MOUNT
32−static int dev_mount = 1;
32+static int mount_dev = 1;
3333 #else
34−static int dev_mount;
34+static int mount_dev;
3535 #endif
3636
3737 static DEFINE_MUTEX(dirlock);
3838
3939 static int __init mount_param(char *str)
4040 {
41− dev_mount = simple_strtoul(str, NULL, 0);
41+ mount_dev = simple_strtoul(str, NULL, 0);
4242 return 1;
4343 }
4444 __setup("devtmpfs.mount=", mount_param);
4545
46−static int dev_get_sb(struct file_system_type *fs_type, int flags,
47− const char *dev_name, void *data, struct vfsmount *mnt)
46+static struct dentry *dev_mount(struct file_system_type *fs_type, int flags,
47+ const char *dev_name, void *data)
4848 {
4949 #ifdef CONFIG_TMPFS
50− return get_sb_single(fs_type, flags, data, shmem_fill_super, mnt);
50+ return mount_single(fs_type, flags, data, shmem_fill_super);
5151 #else
52− return get_sb_single(fs_type, flags, data, ramfs_fill_super, mnt);
52+ return mount_single(fs_type, flags, data, ramfs_fill_super);
5353 #endif
5454 }
5555
5656 static struct file_system_type dev_fs_type = {
5757 .name = "devtmpfs",
58− .get_sb = dev_get_sb,
58+ .mount = dev_mount,
5959 .kill_sb = kill_litter_super,
6060 };
6161
@@ -351,7 +351,7 @@ int devtmpfs_mount(const char *mntdir) · 289 unmodified lines
351351 {
352352 int err;
353353
354− if (!dev_mount)
354+ if (!mount_dev)
355355 return 0;
356356
357357 if (!dev_mnt)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t