diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-10-20 01:38:32 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-10-20 01:38:32 +0000 |
commit | 8bf191e8660939687ef35c013066d2082cb16722 (patch) | |
tree | ba298d3b55f2d76127caa735ad2e064320be0003 /e2fsck/pass1.c | |
parent | 7668d9b590befc2d574cab710c2b83c1226ddd15 (diff) | |
download | e2fsprogs-8bf191e8660939687ef35c013066d2082cb16722.tar.gz |
Many files:
Place #ifdef RESOURCE_TRACK around code which uses init_resource_track
and print_resource_track. (Not all systems have timeval)
Diffstat (limited to 'e2fsck/pass1.c')
-rw-r--r-- | e2fsck/pass1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index bd046d21..bda1a515 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -120,11 +120,15 @@ void pass1(e2fsck_t ctx) struct ext2_inode inode; ext2_inode_scan scan; char *block_buf; +#ifdef RESOURCE_TRACK struct resource_track rtrack; +#endif unsigned char frag, fsize; struct problem_context pctx; +#ifdef RESOURCE_TRACK init_resource_track(&rtrack); +#endif clear_problem_context(&pctx); if (!(ctx->options & E2F_OPT_PREEN)) @@ -435,8 +439,10 @@ endit: ext2fs_free_block_bitmap(ctx->block_illegal_map); ctx->block_illegal_map = 0; +#ifdef RESOURCE_TRACK if (ctx->options & E2F_OPT_TIME2) print_resource_track("Pass 1", &rtrack); +#endif } /* |