e2fsck: Fix double-counting of non-contiguous extent-based inodes

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2008-12-08 22:58:29 -05:00
parent 100d4701d5
commit d5a74ff10b
3 changed files with 2 additions and 9 deletions

View File

@ -1781,13 +1781,6 @@ static void check_blocks_extents(e2fsck_t ctx, struct problem_context *pctx,
scan_extent_node(ctx, pctx, pb, 0, ehandle);
if (pb->fragmented && pb->num_blocks < fs->super->s_blocks_per_group) {
if (LINUX_S_ISDIR(inode->i_mode))
ctx->fs_fragmented_dir++;
else
ctx->fs_fragmented++;
}
ext2fs_extent_free(ehandle);
}

View File

@ -66,5 +66,5 @@ Fix? yes
test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
test_filesys: 18/32 files (44.4% non-contiguous), 145/200 blocks
test_filesys: 18/32 files (22.2% non-contiguous), 145/200 blocks
Exit status is 1

View File

@ -3,5 +3,5 @@ Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
test_filesys: 18/32 files (44.4% non-contiguous), 145/200 blocks
test_filesys: 18/32 files (22.2% non-contiguous), 145/200 blocks
Exit status is 0