From 8bf191e8660939687ef35c013066d2082cb16722 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 20 Oct 1997 01:38:32 +0000 Subject: Many files: Place #ifdef RESOURCE_TRACK around code which uses init_resource_track and print_resource_track. (Not all systems have timeval) --- e2fsck/pass1.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'e2fsck/pass1.c') 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 } /* -- cgit v1.2.3