From 7ac25441fb7bc3c53f4ad20500591c749dcddda6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 17 Jan 2006 14:06:44 +0100 Subject: [PATCH] [PATCH] blktrace: we don't need ->closed anymore --- blktrace.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/blktrace.c b/blktrace.c index 5245854..ba53b09 100644 --- a/blktrace.c +++ b/blktrace.c @@ -143,8 +143,6 @@ struct thread_information { FILE *ofile; char *ofile_buffer; - volatile int closed; - unsigned long events_processed; struct device_information *device; }; @@ -181,9 +179,6 @@ static pthread_mutex_t stdout_mutex = PTHREAD_MUTEX_INITIALIZER; static void exit_trace(int status); -#define tip_closed(tip) (*(volatile int *)(&(tip)->closed)) -#define set_tip_closed(tip) ((tip)->closed = 1) - #define dip_tracing(dip) (*(volatile int *)(&(dip)->trace_started)) #define dip_set_tracing(dip, v) ((dip)->trace_started = (v)) @@ -482,11 +477,6 @@ static inline void tip_fd_lock(struct thread_information *tip) static void close_thread(struct thread_information *tip) { - if (tip_closed(tip)) - return; - - set_tip_closed(tip); - if (tip->fd != -1) close(tip->fd); if (tip->ofile) -- 2.25.1