History

convert get_sb_single() users

Al Viro committed 16 years ago

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

Showing the changes to security (3 of 25 files). Show all

Unified · Split

3 files
  1. security/inode.c +4 −4
  2. security/selinux/selinuxfs.c +4 −5
  3. security/smack/smackfs.c +5 −7
security/inode.c+4−4
@@ -131,17 +131,17 @@ static int fill_super(struct super_block *sb, void *data, int silent) · 130 unmodified lines
131131 return simple_fill_super(sb, SECURITYFS_MAGIC, files);
132132 }
133133
134−static int get_sb(struct file_system_type *fs_type,
134+static struct dentry *get_sb(struct file_system_type *fs_type,
135135 int flags, const char *dev_name,
136− void *data, struct vfsmount *mnt)
136+ void *data)
137137 {
138− return get_sb_single(fs_type, flags, data, fill_super, mnt);
138+ return mount_single(fs_type, flags, data, fill_super);
139139 }
140140
141141 static struct file_system_type fs_type = {
142142 .owner = THIS_MODULE,
143143 .name = "securityfs",
144− .get_sb = get_sb,
144+ .mount = get_sb,
145145 .kill_sb = kill_litter_super,
146146 };
147147
security/selinux/selinuxfs.c+4−5
@@ -1909,16 +1909,15 @@ err: · 1908 unmodified lines
19091909 goto out;
19101910 }
19111911
1912−static int sel_get_sb(struct file_system_type *fs_type,
1913− int flags, const char *dev_name, void *data,
1914− struct vfsmount *mnt)
1912+static struct dentry *sel_mount(struct file_system_type *fs_type,
1913+ int flags, const char *dev_name, void *data)
19151914 {
1916− return get_sb_single(fs_type, flags, data, sel_fill_super, mnt);
1915+ return mount_single(fs_type, flags, data, sel_fill_super);
19171916 }
19181917
19191918 static struct file_system_type sel_fs_type = {
19201919 .name = "selinuxfs",
1921− .get_sb = sel_get_sb,
1920+ .mount = sel_mount,
19221921 .kill_sb = kill_litter_super,
19231922 };
19241923
security/smack/smackfs.c+5−7
@@ -1310,27 +1310,25 @@ static int smk_fill_super(struct super_block *sb, void *data, int silent) · 1309 unmodified lines
13101310 }
13111311
13121312 /**
1313− * smk_get_sb - get the smackfs superblock
1313+ * smk_mount - get the smackfs superblock
13141314 * @fs_type: passed along without comment
13151315 * @flags: passed along without comment
13161316 * @dev_name: passed along without comment
13171317 * @data: passed along without comment
1318− * @mnt: passed along without comment
13191318 *
13201319 * Just passes everything along.
13211320 *
13221321 * Returns what the lower level code does.
13231322 */
1324−static int smk_get_sb(struct file_system_type *fs_type,
1325− int flags, const char *dev_name, void *data,
1326− struct vfsmount *mnt)
1323+static struct dentry *smk_mount(struct file_system_type *fs_type,
1324+ int flags, const char *dev_name, void *data)
13271325 {
1328− return get_sb_single(fs_type, flags, data, smk_fill_super, mnt);
1326+ return mount_single(fs_type, flags, data, smk_fill_super);
13291327 }
13301328
13311329 static struct file_system_type smk_fs_type = {
13321330 .name = "smackfs",
1333− .get_sb = smk_get_sb,
1331+ .mount = smk_mount,
13341332 .kill_sb = kill_litter_super,
13351333 };
13361334