aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/super.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 02815e92553b..5f0d400385e0 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -986,10 +986,9 @@ static void udf_load_fileset(struct super_block *sb, struct buffer_head *bh,
986int udf_compute_nr_groups(struct super_block *sb, u32 partition) 986int udf_compute_nr_groups(struct super_block *sb, u32 partition)
987{ 987{
988 struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition]; 988 struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
989 return (map->s_partition_len + 989 return DIV_ROUND_UP(map->s_partition_len +
990 (sizeof(struct spaceBitmapDesc) << 3) + 990 (sizeof(struct spaceBitmapDesc) << 3),
991 (sb->s_blocksize * 8) - 1) / 991 sb->s_blocksize * 8);
992 (sb->s_blocksize * 8);
993} 992}
994 993
995static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index) 994static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)