Skip to content

Commit 3c26ff6

Browse files
author
Al Viro
committed
convert get_sb_nodev() users
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent fc14f2f commit 3c26ff6

17 files changed

Lines changed: 87 additions & 73 deletions

File tree

‎drivers/staging/autofs/init.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
#include <linux/init.h>
1515
#include "autofs_i.h"
1616

17-
static int autofs_get_sb(struct file_system_type *fs_type,
18-
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
17+
static struct dentry *autofs_mount(struct file_system_type *fs_type,
18+
int flags, const char *dev_name, void *data)
1919
{
20-
return get_sb_nodev(fs_type, flags, data, autofs_fill_super, mnt);
20+
return mount_nodev(fs_type, flags, data, autofs_fill_super);
2121
}
2222

2323
static struct file_system_type autofs_fs_type = {
2424
.owner = THIS_MODULE,
2525
.name = "autofs",
26-
.get_sb = autofs_get_sb,
26+
.mount = autofs_mount,
2727
.kill_sb = autofs_kill_sb,
2828
};
2929

‎drivers/staging/pohmelfs/inode.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,11 +1937,10 @@ static int pohmelfs_fill_super(struct super_block *sb, void *data, int silent)
19371937
/*
19381938
* Some VFS magic here...
19391939
*/
1940-
static int pohmelfs_get_sb(struct file_system_type *fs_type,
1941-
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
1940+
static struct dentry *pohmelfs_mount(struct file_system_type *fs_type,
1941+
int flags, const char *dev_name, void *data)
19421942
{
1943-
return get_sb_nodev(fs_type, flags, data, pohmelfs_fill_super,
1944-
mnt);
1943+
return mount_nodev(fs_type, flags, data, pohmelfs_fill_super);
19451944
}
19461945

19471946
/*
@@ -1958,7 +1957,7 @@ static void pohmelfs_kill_super(struct super_block *sb)
19581957
static struct file_system_type pohmel_fs_type = {
19591958
.owner = THIS_MODULE,
19601959
.name = "pohmel",
1961-
.get_sb = pohmelfs_get_sb,
1960+
.mount = pohmelfs_mount,
19621961
.kill_sb = pohmelfs_kill_super,
19631962
};
19641963

‎drivers/staging/smbfs/inode.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,16 +793,16 @@ smb_notify_change(struct dentry *dentry, struct iattr *attr)
793793
return error;
794794
}
795795

796-
static int smb_get_sb(struct file_system_type *fs_type,
797-
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
796+
static struct dentry *smb_mount(struct file_system_type *fs_type,
797+
int flags, const char *dev_name, void *data)
798798
{
799-
return get_sb_nodev(fs_type, flags, data, smb_fill_super, mnt);
799+
return mount_nodev(fs_type, flags, data, smb_fill_super);
800800
}
801801

802802
static struct file_system_type smb_fs_type = {
803803
.owner = THIS_MODULE,
804804
.name = "smbfs",
805-
.get_sb = smb_get_sb,
805+
.mount = smb_mount,
806806
.kill_sb = kill_anon_super,
807807
.fs_flags = FS_BINARY_MOUNTDATA,
808808
};

‎fs/autofs4/init.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
#include <linux/init.h>
1515
#include "autofs_i.h"
1616

17-
static int autofs_get_sb(struct file_system_type *fs_type,
18-
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
17+
static struct dentry *autofs_mount(struct file_system_type *fs_type,
18+
int flags, const char *dev_name, void *data)
1919
{
20-
return get_sb_nodev(fs_type, flags, data, autofs4_fill_super, mnt);
20+
return mount_nodev(fs_type, flags, data, autofs4_fill_super);
2121
}
2222

2323
static struct file_system_type autofs_fs_type = {
2424
.owner = THIS_MODULE,
2525
.name = "autofs",
26-
.get_sb = autofs_get_sb,
26+
.mount = autofs_mount,
2727
.kill_sb = autofs4_kill_sb,
2828
};
2929

‎fs/coda/inode.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,16 @@ static int coda_statfs(struct dentry *dentry, struct kstatfs *buf)
306306

307307
/* init_coda: used by filesystems.c to register coda */
308308

309-
static int coda_get_sb(struct file_system_type *fs_type,
310-
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
309+
static struct dentry *coda_mount(struct file_system_type *fs_type,
310+
int flags, const char *dev_name, void *data)
311311
{
312-
return get_sb_nodev(fs_type, flags, data, coda_fill_super, mnt);
312+
return mount_nodev(fs_type, flags, data, coda_fill_super);
313313
}
314314

315315
struct file_system_type coda_fs_type = {
316316
.owner = THIS_MODULE,
317317
.name = "coda",
318-
.get_sb = coda_get_sb,
318+
.mount = coda_mount,
319319
.kill_sb = kill_anon_super,
320320
.fs_flags = FS_BINARY_MOUNTDATA,
321321
};

‎fs/exofs/super.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -659,19 +659,19 @@ static int exofs_fill_super(struct super_block *sb, void *data, int silent)
659659
/*
660660
* Set up the superblock (calls exofs_fill_super eventually)
661661
*/
662-
static int exofs_get_sb(struct file_system_type *type,
662+
static struct dentry *exofs_mount(struct file_system_type *type,
663663
int flags, const char *dev_name,
664-
void *data, struct vfsmount *mnt)
664+
void *data)
665665
{
666666
struct exofs_mountopt opts;
667667
int ret;
668668

669669
ret = parse_options(data, &opts);
670670
if (ret)
671-
return ret;
671+
return ERR_PTR(ret);
672672

673673
opts.dev_name = dev_name;
674-
return get_sb_nodev(type, flags, &opts, exofs_fill_super, mnt);
674+
return mount_nodev(type, flags, &opts, exofs_fill_super);
675675
}
676676

677677
/*
@@ -809,7 +809,7 @@ static const struct export_operations exofs_export_ops = {
809809
static struct file_system_type exofs_type = {
810810
.owner = THIS_MODULE,
811811
.name = "exofs",
812-
.get_sb = exofs_get_sb,
812+
.mount = exofs_mount,
813813
.kill_sb = generic_shutdown_super,
814814
};
815815

‎fs/fuse/inode.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,11 +1041,11 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
10411041
return err;
10421042
}
10431043

1044-
static int fuse_get_sb(struct file_system_type *fs_type,
1044+
static struct dentry *fuse_mount(struct file_system_type *fs_type,
10451045
int flags, const char *dev_name,
1046-
void *raw_data, struct vfsmount *mnt)
1046+
void *raw_data)
10471047
{
1048-
return get_sb_nodev(fs_type, flags, raw_data, fuse_fill_super, mnt);
1048+
return mount_nodev(fs_type, flags, raw_data, fuse_fill_super);
10491049
}
10501050

10511051
static void fuse_kill_sb_anon(struct super_block *sb)
@@ -1065,7 +1065,7 @@ static struct file_system_type fuse_fs_type = {
10651065
.owner = THIS_MODULE,
10661066
.name = "fuse",
10671067
.fs_flags = FS_HAS_SUBTYPE,
1068-
.get_sb = fuse_get_sb,
1068+
.mount = fuse_mount,
10691069
.kill_sb = fuse_kill_sb_anon,
10701070
};
10711071

‎fs/hostfs/hostfs_kern.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -962,11 +962,11 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
962962
return err;
963963
}
964964

965-
static int hostfs_read_sb(struct file_system_type *type,
965+
static struct dentry *hostfs_read_sb(struct file_system_type *type,
966966
int flags, const char *dev_name,
967-
void *data, struct vfsmount *mnt)
967+
void *data)
968968
{
969-
return get_sb_nodev(type, flags, data, hostfs_fill_sb_common, mnt);
969+
return mount_nodev(type, flags, data, hostfs_fill_sb_common);
970970
}
971971

972972
static void hostfs_kill_sb(struct super_block *s)
@@ -978,7 +978,7 @@ static void hostfs_kill_sb(struct super_block *s)
978978
static struct file_system_type hostfs_type = {
979979
.owner = THIS_MODULE,
980980
.name = "hostfs",
981-
.get_sb = hostfs_read_sb,
981+
.mount = hostfs_read_sb,
982982
.kill_sb = hostfs_kill_sb,
983983
.fs_flags = 0,
984984
};

‎fs/hppfs/hppfs.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,17 +748,17 @@ static int hppfs_fill_super(struct super_block *sb, void *d, int silent)
748748
return(err);
749749
}
750750

751-
static int hppfs_read_super(struct file_system_type *type,
751+
static struct dentry *hppfs_read_super(struct file_system_type *type,
752752
int flags, const char *dev_name,
753-
void *data, struct vfsmount *mnt)
753+
void *data)
754754
{
755-
return get_sb_nodev(type, flags, data, hppfs_fill_super, mnt);
755+
return mount_nodev(type, flags, data, hppfs_fill_super);
756756
}
757757

758758
static struct file_system_type hppfs_type = {
759759
.owner = THIS_MODULE,
760760
.name = "hppfs",
761-
.get_sb = hppfs_read_super,
761+
.mount = hppfs_read_super,
762762
.kill_sb = kill_anon_super,
763763
.fs_flags = 0,
764764
};

‎fs/hugetlbfs/inode.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,15 +896,15 @@ void hugetlb_put_quota(struct address_space *mapping, long delta)
896896
}
897897
}
898898

899-
static int hugetlbfs_get_sb(struct file_system_type *fs_type,
900-
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
899+
static struct dentry *hugetlbfs_mount(struct file_system_type *fs_type,
900+
int flags, const char *dev_name, void *data)
901901
{
902-
return get_sb_nodev(fs_type, flags, data, hugetlbfs_fill_super, mnt);
902+
return mount_nodev(fs_type, flags, data, hugetlbfs_fill_super);
903903
}
904904

905905
static struct file_system_type hugetlbfs_fs_type = {
906906
.name = "hugetlbfs",
907-
.get_sb = hugetlbfs_get_sb,
907+
.mount = hugetlbfs_mount,
908908
.kill_sb = kill_litter_super,
909909
};
910910

0 commit comments

Comments
 (0)