diff options
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r-- | fs/ext4/balloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 0a64e4d5dbad..5745d53c67e8 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -168,7 +168,7 @@ void ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh, | |||
168 | 168 | ||
169 | /* If checksum is bad mark all blocks used to prevent allocation | 169 | /* If checksum is bad mark all blocks used to prevent allocation |
170 | * essentially implementing a per-group read-only flag. */ | 170 | * essentially implementing a per-group read-only flag. */ |
171 | if (!ext4_group_desc_csum_verify(sbi, block_group, gdp)) { | 171 | if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) { |
172 | ext4_error(sb, "Checksum bad for group %u", block_group); | 172 | ext4_error(sb, "Checksum bad for group %u", block_group); |
173 | ext4_free_group_clusters_set(sb, gdp, 0); | 173 | ext4_free_group_clusters_set(sb, gdp, 0); |
174 | ext4_free_inodes_set(sb, gdp, 0); | 174 | ext4_free_inodes_set(sb, gdp, 0); |
@@ -214,7 +214,7 @@ void ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh, | |||
214 | sb->s_blocksize * 8, bh->b_data); | 214 | sb->s_blocksize * 8, bh->b_data); |
215 | ext4_block_bitmap_csum_set(sb, block_group, gdp, bh, | 215 | ext4_block_bitmap_csum_set(sb, block_group, gdp, bh, |
216 | EXT4_BLOCKS_PER_GROUP(sb) / 8); | 216 | EXT4_BLOCKS_PER_GROUP(sb) / 8); |
217 | gdp->bg_checksum = ext4_group_desc_csum(sbi, block_group, gdp); | 217 | ext4_group_desc_csum_set(sb, block_group, gdp); |
218 | } | 218 | } |
219 | 219 | ||
220 | /* Return the number of free blocks in a block group. It is used when | 220 | /* Return the number of free blocks in a block group. It is used when |