projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iolog: fix two bugs in deferred growing
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index f55cb2f5cc8dfdd4fcc3087d6435134e7405c07b..146090e7f168d232fd055bb1a110229e35c0466a 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-1901,6
+1901,12
@@
static struct io_logs *regrow_log(struct io_log *iolog)
return NULL;
cur_log = iolog_cur_log(iolog);
+ if (!cur_log) {
+ cur_log = get_new_log(iolog);
+ if (!cur_log)
+ return NULL;
+ }
+
if (cur_log->nr_samples < cur_log->max_samples)
return cur_log;