mirror of https://github.com/schoebel/mars
logger: remove useless counter
This commit is contained in:
parent
4de7045fd5
commit
d8e2421de9
|
@ -30,7 +30,6 @@
|
|||
/* readonly from outside */ \
|
||||
atomic_t q_queued; \
|
||||
atomic_t q_flying; \
|
||||
atomic_t q_total; \
|
||||
/* tunables */ \
|
||||
int q_batchlen; \
|
||||
int q_io_prio; \
|
||||
|
@ -83,7 +82,6 @@ void q_##PREFIX##_insert(struct PREFIX##_queue *q, ELEM_TYPE *elem) \
|
|||
list_add_tail(&elem->HEAD, &q->q_anchor); \
|
||||
} \
|
||||
atomic_inc(&q->q_queued); \
|
||||
atomic_inc(&q->q_total); \
|
||||
q->q_last_insert = jiffies; \
|
||||
\
|
||||
traced_unlock(&q->q_lock, flags); \
|
||||
|
@ -97,7 +95,6 @@ void q_##PREFIX##_pushback(struct PREFIX##_queue *q, ELEM_TYPE *elem) \
|
|||
unsigned long flags; \
|
||||
\
|
||||
if (q->q_ordering) { \
|
||||
atomic_dec(&q->q_total); \
|
||||
q_##PREFIX##_insert(q, elem); \
|
||||
return; \
|
||||
} \
|
||||
|
|
|
@ -3167,11 +3167,7 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose)
|
|||
"mshadow_buffered=%d sshadow_buffered=%d "
|
||||
"rounds=%d "
|
||||
"restarts=%d "
|
||||
"delays=%d "
|
||||
"phase0=%d "
|
||||
"phase1=%d "
|
||||
"phase2=%d "
|
||||
"phase3=%d | "
|
||||
"delays=%d | "
|
||||
"current #mrefs = %d "
|
||||
"shadow_mem_used=%ld/%lld "
|
||||
"replay_count=%d "
|
||||
|
@ -3231,10 +3227,6 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose)
|
|||
atomic_read(&brick->total_round_count),
|
||||
atomic_read(&brick->total_restart_count),
|
||||
atomic_read(&brick->total_delay_count),
|
||||
atomic_read(&brick->q_phase[0].q_total),
|
||||
atomic_read(&brick->q_phase[1].q_total),
|
||||
atomic_read(&brick->q_phase[2].q_total),
|
||||
atomic_read(&brick->q_phase[3].q_total),
|
||||
atomic_read(&brick->mref_object_layout.alloc_count),
|
||||
atomic64_read(&brick->shadow_mem_used) / 1024,
|
||||
brick_global_memlimit,
|
||||
|
|
Loading…
Reference in New Issue