diff options
Diffstat (limited to 'e2fsck/pass4.c')
-rw-r--r-- | e2fsck/pass4.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e2fsck/pass4.c b/e2fsck/pass4.c index 1e632807..21d93f0c 100644 --- a/e2fsck/pass4.c +++ b/e2fsck/pass4.c @@ -99,7 +99,7 @@ void e2fsck_pass4(e2fsck_t ctx) struct problem_context pctx; __u16 link_count, link_counted; char *buf = 0; - int group, maxgroup; + dgrp_t group, maxgroup; init_resource_track(&rtrack, ctx->fs->io); @@ -123,7 +123,7 @@ void e2fsck_pass4(e2fsck_t ctx) /* Protect loop from wrap-around if s_inodes_count maxed */ for (i=1; i <= fs->super->s_inodes_count && i > 0; i++) { - int isdir = ext2fs_test_inode_bitmap2(ctx->inode_dir_map, i); + int isdir; if (ctx->flags & E2F_FLAG_SIGNAL_MASK) goto errout; @@ -157,6 +157,7 @@ void e2fsck_pass4(e2fsck_t ctx) ext2fs_icount_fetch(ctx->inode_count, i, &link_counted); } + isdir = ext2fs_test_inode_bitmap2(ctx->inode_dir_map, i); if (isdir && (link_counted > EXT2_LINK_MAX)) link_counted = 1; if (link_counted != link_count) { |