From 42793d9467cc45d08ced5211c3797bf68a3d24cc Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 8 Apr 2014 21:18:37 -0600 Subject: [PATCH 1/1] iolog: skip max_bs[rw] increment for rw == DDIR_INVAL Signed-off-by: Jens Axboe --- iolog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iolog.c b/iolog.c index e805eaef..1eb89b29 100644 --- a/iolog.c +++ b/iolog.c @@ -371,7 +371,7 @@ static int read_iolog2(struct thread_data *td, FILE *f) } else { ipo->offset = offset; ipo->len = bytes; - if (bytes > td->o.max_bs[rw]) + if (rw != DDIR_INVAL && bytes > td->o.max_bs[rw]) td->o.max_bs[rw] = bytes; ipo->fileno = fileno; ipo->file_action = file_action; -- 2.25.1