diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-24 17:48:30 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-29 04:16:28 -0400 |
| commit | fc14f2fef682df677d64a145256dbd263df2aa7b (patch) | |
| tree | 74f6b939fbad959a43c04ec646cd0adc8af5f53a | |
| parent | 848b83a59b772b8f102bc5e3f1187c2fa5676959 (diff) | |
convert get_sb_single() users
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 10 | ||||
| -rw-r--r-- | arch/s390/hypfs/inode.c | 8 | ||||
| -rw-r--r-- | drivers/base/devtmpfs.c | 18 | ||||
| -rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 14 | ||||
| -rw-r--r-- | drivers/infiniband/hw/qib/qib_fs.c | 14 | ||||
| -rw-r--r-- | drivers/isdn/capi/capifs.c | 8 | ||||
| -rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 9 | ||||
| -rw-r--r-- | drivers/oprofile/oprofilefs.c | 8 | ||||
| -rw-r--r-- | drivers/usb/core/inode.c | 8 | ||||
| -rw-r--r-- | drivers/usb/gadget/f_fs.c | 14 | ||||
| -rw-r--r-- | drivers/usb/gadget/inode.c | 10 | ||||
| -rw-r--r-- | drivers/xen/xenfs/super.c | 8 | ||||
| -rw-r--r-- | fs/binfmt_misc.c | 8 | ||||
| -rw-r--r-- | fs/configfs/mount.c | 8 | ||||
| -rw-r--r-- | fs/debugfs/inode.c | 8 | ||||
| -rw-r--r-- | fs/devpts/inode.c | 32 | ||||
| -rw-r--r-- | fs/fuse/control.c | 10 | ||||
| -rw-r--r-- | fs/nfsd/nfsctl.c | 8 | ||||
| -rw-r--r-- | fs/openpromfs/inode.c | 8 | ||||
| -rw-r--r-- | fs/super.c | 25 | ||||
| -rw-r--r-- | include/linux/fs.h | 3 | ||||
| -rw-r--r-- | net/sunrpc/rpc_pipe.c | 18 | ||||
| -rw-r--r-- | security/inode.c | 8 | ||||
| -rw-r--r-- | security/selinux/selinuxfs.c | 9 | ||||
| -rw-r--r-- | security/smack/smackfs.c | 12 |
25 files changed, 147 insertions, 139 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 5dec408d6703..3532b92de983 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
| @@ -798,17 +798,17 @@ spufs_fill_super(struct super_block *sb, void *data, int silent) | |||
| 798 | return spufs_create_root(sb, data); | 798 | return spufs_create_root(sb, data); |
| 799 | } | 799 | } |
| 800 | 800 | ||
| 801 | static int | 801 | static struct dentry * |
| 802 | spufs_get_sb(struct file_system_type *fstype, int flags, | 802 | spufs_mount(struct file_system_type *fstype, int flags, |
| 803 | const char *name, void *data, struct vfsmount *mnt) | 803 | const char *name, void *data) |
| 804 | { | 804 | { |
| 805 | return get_sb_single(fstype, flags, data, spufs_fill_super, mnt); | 805 | return mount_single(fstype, flags, data, spufs_fill_super); |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | static struct file_system_type spufs_type = { | 808 | static struct file_system_type spufs_type = { |
| 809 | .owner = THIS_MODULE, | 809 | .owner = THIS_MODULE, |
| 810 | .name = "spufs", | 810 | .name = "spufs", |
| 811 | .get_sb = spufs_get_sb, | 811 | .mount = spufs_mount, |
| 812 | .kill_sb = kill_litter_super, | 812 | .kill_sb = kill_litter_super, |
| 813 | }; | 813 | }; |
| 814 | 814 | ||
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 74d98670be27..47cc446dab8f 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
| @@ -316,10 +316,10 @@ static int hypfs_fill_super(struct super_block *sb, void *data, int silent) | |||
| 316 | return 0; | 316 | return 0; |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | static int hypfs_get_super(struct file_system_type *fst, int flags, | 319 | static struct dentry *hypfs_mount(struct file_system_type *fst, int flags, |
| 320 | const char *devname, void *data, struct vfsmount *mnt) | 320 | const char *devname, void *data) |
| 321 | { | 321 | { |
| 322 | return get_sb_single(fst, flags, data, hypfs_fill_super, mnt); | 322 | return mount_single(fst, flags, data, hypfs_fill_super); |
| 323 | } | 323 | } |
| 324 | 324 | ||
| 325 | static void hypfs_kill_super(struct super_block *sb) | 325 | static void hypfs_kill_super(struct super_block *sb) |
| @@ -455,7 +455,7 @@ static const struct file_operations hypfs_file_ops = { | |||
| 455 | static struct file_system_type hypfs_type = { | 455 | static struct file_system_type hypfs_type = { |
| 456 | .owner = THIS_MODULE, | 456 | .owner = THIS_MODULE, |
| 457 | .name = "s390_hypfs", | 457 | .name = "s390_hypfs", |
| 458 | .get_sb = hypfs_get_super, | 458 | .mount = hypfs_mount, |
| 459 | .kill_sb = hypfs_kill_super | 459 | .kill_sb = hypfs_kill_super |
| 460 | }; | 460 | }; |
| 461 | 461 | ||
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index af0600143d1c..82bbb5967aa9 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c | |||
| @@ -29,33 +29,33 @@ | |||
| 29 | static struct vfsmount *dev_mnt; | 29 | static struct vfsmount *dev_mnt; |
| 30 | 30 | ||
| 31 | #if defined CONFIG_DEVTMPFS_MOUNT | 31 | #if defined CONFIG_DEVTMPFS_MOUNT |
| 32 | static int dev_mount = 1; | 32 | static int mount_dev = 1; |
| 33 | #else | 33 | #else |
| 34 | static int dev_mount; | 34 | static int mount_dev; |
| 35 | #endif | 35 | #endif |
| 36 | 36 | ||
| 37 | static DEFINE_MUTEX(dirlock); | 37 | static DEFINE_MUTEX(dirlock); |
| 38 | 38 | ||
| 39 | static int __init mount_param(char *str) | 39 | static int __init mount_param(char *str) |
| 40 | { | 40 | { |
| 41 | dev_mount = simple_strtoul(str, NULL, 0); | 41 | mount_dev = simple_strtoul(str, NULL, 0); |
| 42 | return 1; | 42 | return 1; |
| 43 | } | 43 | } |
| 44 | __setup("devtmpfs.mount=", mount_param); | 44 | __setup("devtmpfs.mount=", mount_param); |
| 45 | 45 | ||
| 46 | static int dev_get_sb(struct file_system_type *fs_type, int flags, | 46 | static struct dentry *dev_mount(struct file_system_type *fs_type, int flags, |
| 47 | const char *dev_name, void *data, struct vfsmount *mnt) | 47 | const char *dev_name, void *data) |
| 48 | { | 48 | { |
| 49 | #ifdef CONFIG_TMPFS | 49 | #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); |
| 51 | #else | 51 | #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); |
| 53 | #endif | 53 | #endif |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | static struct file_system_type dev_fs_type = { | 56 | static struct file_system_type dev_fs_type = { |
| 57 | .name = "devtmpfs", | 57 | .name = "devtmpfs", |
| 58 | .get_sb = dev_get_sb, | 58 | .mount = dev_mount, |
| 59 | .kill_sb = kill_litter_super, | 59 | .kill_sb = kill_litter_super, |
| 60 | }; | 60 | }; |
| 61 | 61 | ||
| @@ -351,7 +351,7 @@ int devtmpfs_mount(const char *mntdir) | |||
| 351 | { | 351 | { |
| 352 | int err; | 352 | int err; |
| 353 | 353 | ||
| 354 | if (!dev_mount) | 354 | if (!mount_dev) |
| 355 | return 0; | 355 | return 0; |
| 356 | 356 | ||
| 357 | if (!dev_mnt) | 357 | if (!dev_mnt) |
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 12d5bf76302c..8c8afc716b98 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
| @@ -362,13 +362,13 @@ bail: | |||
| 362 | return ret; | 362 | return ret; |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | static int ipathfs_get_sb(struct file_system_type *fs_type, int flags, | 365 | static struct dentry *ipathfs_mount(struct file_system_type *fs_type, |
| 366 | const char *dev_name, void *data, struct vfsmount *mnt) | 366 | int flags, const char *dev_name, void *data) |
| 367 | { | 367 | { |
| 368 | int ret = get_sb_single(fs_type, flags, data, | 368 | struct dentry *ret; |
| 369 | ipathfs_fill_super, mnt); | 369 | ret = mount_single(fs_type, flags, data, ipathfs_fill_super); |
| 370 | if (ret >= 0) | 370 | if (!IS_ERR(ret)) |
| 371 | ipath_super = mnt->mnt_sb; | 371 | ipath_super = ret->d_sb; |
| 372 | return ret; | 372 | return ret; |
| 373 | } | 373 | } |
| 374 | 374 | ||
| @@ -411,7 +411,7 @@ bail: | |||
| 411 | static struct file_system_type ipathfs_fs_type = { | 411 | static struct file_system_type ipathfs_fs_type = { |
| 412 | .owner = THIS_MODULE, | 412 | .owner = THIS_MODULE, |
| 413 | .name = "ipathfs", | 413 | .name = "ipathfs", |
| 414 | .get_sb = ipathfs_get_sb, | 414 | .mount = ipathfs_mount, |
| 415 | .kill_sb = ipathfs_kill_super, | 415 | .kill_sb = ipathfs_kill_super, |
| 416 | }; | 416 | }; |
| 417 | 417 | ||
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 7e433d75c775..f99bddc01716 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
| @@ -555,13 +555,13 @@ bail: | |||
| 555 | return ret; | 555 | return ret; |
| 556 | } | 556 | } |
| 557 | 557 | ||
| 558 | |||
