]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - misc/e2freefrag.c
Break up RELEASE-NOTES into files in doc/RelNotes
[thirdparty/e2fsprogs.git] / misc / e2freefrag.c
index b315263db7b780bb4493aecc7ca95fb52f055f1f..c5aeab9dfb67fedf2b642e6d14e795eba828a0a0 100644 (file)
@@ -255,9 +255,10 @@ static errcode_t dump_chunk_info(ext2_filsys fs, struct chunk_info *info,
        unsigned long start = 0, end;
        int i, retval = 0;
 
-       fprintf(f, "Total blocks: %llu\nFree blocks: %u (%0.1f%%)\n",
-               ext2fs_blocks_count(fs->super), fs->super->s_free_blocks_count,
-               (double)fs->super->s_free_blocks_count * 100 /
+       fprintf(f, "Total blocks: %llu\nFree blocks: %llu (%0.1f%%)\n",
+               ext2fs_blocks_count(fs->super),
+               ext2fs_free_blocks_count(fs->super),
+               (double)ext2fs_free_blocks_count(fs->super) * 100 /
                ext2fs_blocks_count(fs->super));
 
        if (info->chunkbytes) {
@@ -301,7 +302,7 @@ static errcode_t dump_chunk_info(ext2_filsys fs, struct chunk_info *info,
                                info->histogram.fc_chunks[i],
                                info->histogram.fc_blocks[i],
                                (double)info->histogram.fc_blocks[i] * 100 /
-                               fs->super->s_free_blocks_count);
+                               ext2fs_free_blocks_count(fs->super));
                }
                start = end;
                if (start == 1<<10) {