From fe75afbf33389f71f8588af388d0c01db0cbf753 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 16 Jun 2011 01:38:43 -0400 Subject: Fix superblock field s_blocks_count for bigalloc file systems Treat the s_blocks_count field in the superblock as a free block count (instead of the number of free clusters) for bigalloc file systems. Signed-off-by: "Theodore Ts'o" --- e2fsck/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'e2fsck/super.c') diff --git a/e2fsck/super.c b/e2fsck/super.c index 3f9e3331..40cfc4fb 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -690,7 +690,7 @@ void check_super_block(e2fsck_t ctx) return; } - ctx->free_blocks = free_blocks; + ctx->free_blocks = EXT2FS_C2B(fs, free_blocks); ctx->free_inodes = free_inodes; if ((ext2fs_free_blocks_count(sb) > ext2fs_blocks_count(sb)) || -- cgit v1.2.3