summaryrefslogtreecommitdiff
path: root/fs/romfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-07-25 00:56:46 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-10-29 04:16:26 -0400
commit848b83a59b772b8f102bc5e3f1187c2fa5676959 (patch)
treed09a3755252e73f4bef000ffafbc0e9fd72d1a38 /fs/romfs
parent152a08366671080f27b32e0c411ad620c5f88b57 (diff)
downloadlinux-3.10-848b83a59b772b8f102bc5e3f1187c2fa5676959.tar.gz
linux-3.10-848b83a59b772b8f102bc5e3f1187c2fa5676959.tar.bz2
linux-3.10-848b83a59b772b8f102bc5e3f1187c2fa5676959.zip
convert get_sb_mtd() users to ->mount()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/romfs')
-rw-r--r--fs/romfs/super.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/romfs/super.c b/fs/romfs/super.c
index 268580535c9..6647f90e55c 100644
--- a/fs/romfs/super.c
+++ b/fs/romfs/super.c
@@ -552,20 +552,19 @@ error_rsb:
/*
* get a superblock for mounting
*/
-static int romfs_get_sb(struct file_system_type *fs_type,
+static struct dentry *romfs_mount(struct file_system_type *fs_type,
int flags, const char *dev_name,
- void *data, struct vfsmount *mnt)
+ void *data)
{
- int ret = -EINVAL;
+ struct dentry *ret = ERR_PTR(-EINVAL);
#ifdef CONFIG_ROMFS_ON_MTD
- ret = get_sb_mtd(fs_type, flags, dev_name, data, romfs_fill_super,
- mnt);
+ ret = mount_mtd(fs_type, flags, dev_name, data, romfs_fill_super);
#endif
#ifdef CONFIG_ROMFS_ON_BLOCK
- if (ret == -EINVAL)
- ret = get_sb_bdev(fs_type, flags, dev_name, data,
- romfs_fill_super, mnt);
+ if (ret == ERR_PTR(-EINVAL))
+ ret = mount_bdev(fs_type, flags, dev_name, data,
+ romfs_fill_super);
#endif
return ret;
}
@@ -592,7 +591,7 @@ static void romfs_kill_sb(struct super_block *sb)
static struct file_system_type romfs_fs_type = {
.owner = THIS_MODULE,
.name = "romfs",
- .get_sb = romfs_get_sb,
+ .mount = romfs_mount,
.kill_sb = romfs_kill_sb,
.fs_flags = FS_REQUIRES_DEV,
};