]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: Account for index nodes in the extent tree for i_blocks
authorTheodore Ts'o <tytso@mit.edu>
Fri, 22 Feb 2008 20:53:50 +0000 (15:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Feb 2008 20:53:50 +0000 (15:53 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c

index ef7e0bf7cbddc4757982fab4e08caff749443059..e2143612bde224f486c230fedd351e64beb4cc5f 100644 (file)
@@ -1584,6 +1584,7 @@ static void scan_extent_node(e2fsck_t ctx, struct problem_context *pctx,
 
                if (!is_leaf) {
                        mark_block_used(ctx, extent.e_pblk);
+                       pb->num_blocks++;
                        pctx->errcode = ext2fs_extent_get(ehandle,
                                                  EXT2_EXTENT_DOWN, &extent);
                        if (pctx->errcode) {