commit | 42793d9467cc45d08ced5211c3797bf68a3d24cc | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Apr 08 21:18:37 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Apr 08 21:18:37 2014 -0600 |
tree | eb4af9e69f0588dd623699a59af96bfa743c0b07 | |
parent | 976406b8a0d823f053400178b7b86f32a973762d [diff] |
iolog: skip max_bs[rw] increment for rw == DDIR_INVAL Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/iolog.c b/iolog.c index e805eae..1eb89b2 100644 --- a/iolog.c +++ b/iolog.c
@@ -371,7 +371,7 @@ } 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;