aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index cee7812cc3cf..d23b31ca9d7a 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -609,7 +609,8 @@ ext4_fsblk_t ext4_count_free_clusters(struct super_block *sb)
609 if (bitmap_bh == NULL) 609 if (bitmap_bh == NULL)
610 continue; 610 continue;
611 611
612 x = ext4_count_free(bitmap_bh, sb->s_blocksize); 612 x = ext4_count_free(bitmap_bh->b_data,
613 EXT4_BLOCKS_PER_GROUP(sb) / 8);
613 printk(KERN_DEBUG "group %u: stored = %d, counted = %u\n", 614 printk(KERN_DEBUG "group %u: stored = %d, counted = %u\n",
614 i, ext4_free_group_clusters(sb, gdp), x); 615 i, ext4_free_group_clusters(sb, gdp), x);
615 bitmap_count += x; 616 bitmap_count += x;