aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r--fs/udf/super.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 29b19678327a..8f02b30c22ef 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -1215,8 +1215,7 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
1215 return 1; 1215 return 1;
1216 1216
1217 if (map->s_partition_type == UDF_VIRTUAL_MAP15) { 1217 if (map->s_partition_type == UDF_VIRTUAL_MAP15) {
1218 map->s_type_specific.s_virtual.s_start_offset = 1218 map->s_type_specific.s_virtual.s_start_offset = 0;
1219 udf_ext0_offset(sbi->s_vat_inode);
1220 map->s_type_specific.s_virtual.s_num_entries = 1219 map->s_type_specific.s_virtual.s_num_entries =
1221 (sbi->s_vat_inode->i_size - 36) >> 2; 1220 (sbi->s_vat_inode->i_size - 36) >> 2;
1222 } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) { 1221 } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) {
@@ -1233,8 +1232,7 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
1233 } 1232 }
1234 1233
1235 map->s_type_specific.s_virtual.s_start_offset = 1234 map->s_type_specific.s_virtual.s_start_offset =
1236 le16_to_cpu(vat20->lengthHeader) + 1235 le16_to_cpu(vat20->lengthHeader);
1237 udf_ext0_offset(sbi->s_vat_inode);
1238 map->s_type_specific.s_virtual.s_num_entries = 1236 map->s_type_specific.s_virtual.s_num_entries =
1239 (sbi->s_vat_inode->i_size - 1237 (sbi->s_vat_inode->i_size -
1240 map->s_type_specific.s_virtual. 1238 map->s_type_specific.s_virtual.