static int jffs2_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt) { return get_sb_mtd(fs_type, flags, dev_name, data, jffs2_fill_super, mnt); }
/* * get a superblock for mounting */ static int romfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt) { int ret = -EINVAL; #ifdef CONFIG_ROMFS_ON_MTD ret = get_sb_mtd(fs_type, flags, dev_name, data, romfs_fill_super, mnt); #endif #ifdef CONFIG_ROMFS_ON_BLOCK if (ret == -EINVAL) ret = get_sb_bdev(fs_type, flags, dev_name, data, romfs_fill_super, mnt); #endif return ret; }