From: Jens Axboe Date: Mon, 6 Jun 2016 15:28:13 +0000 (-0600) Subject: stat: remove redundant unit log check X-Git-Tag: fio-2.12~9 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=f03189f8089d91502737be404ca06bdb48fa3887 stat: remove redundant unit log check We only call the two functions if we know that unit logging is disabled. Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index 2e0b1da0..704947f5 100644 --- a/stat.c +++ b/stat.c @@ -2260,9 +2260,6 @@ static int add_bw_samples(struct thread_data *td, struct timeval *t) unsigned long spent, rate; enum fio_ddir ddir; - if (per_unit_log(td->bw_log)) - return 0; - spent = mtime_since(&td->bw_sample_time, t); if (spent < td->o.bw_avg_time && td->o.bw_avg_time - spent >= 10) @@ -2331,9 +2328,6 @@ static int add_iops_samples(struct thread_data *td, struct timeval *t) unsigned long spent, iops; enum fio_ddir ddir; - if (per_unit_log(td->iops_log)) - return 0; - spent = mtime_since(&td->iops_sample_time, t); if (spent < td->o.iops_avg_time && td->o.iops_avg_time - spent >= 10)