diff options
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index b48e21fae6..564ac950eb 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -86,11 +86,6 @@ static int validate_inode(struct ubifs_info *c, const struct inode *inode) return 1; } - if (ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { - ubifs_err(c, "unknown compression type %d", ui->compr_type); - return 2; - } - if (ui->xattr_names + ui->xattr_cnt > XATTR_LIST_MAX) return 3; @@ -1212,9 +1207,10 @@ out_shrinker: /* late_initcall to let compressors initialize first */ late_initcall(ubifs_init); -int ubifs_get_super(struct device_d *dev, struct ubi_volume_desc *ubi, int silent) +int ubifs_get_super(struct device *dev, struct ubi_volume_desc *ubi, + int silent) { - struct fs_device_d *fsdev = dev_to_fs_device(dev); + struct fs_device *fsdev = dev_to_fs_device(dev); struct super_block *sb; struct ubifs_info *c; int err; |