iolog: do stat() after fopen()
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index ccf08a64e9864ace1b1398618f29b2845e2bd649..979c8100d37881fa2a99ee1c184e504b656e6b7c 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1603,7 +1603,7 @@ static void __add_log_sample(struct io_log *iolog, unsigned long val,
 
        s->val = val;
        s->time = t;
-       s->ddir = ddir;
+       io_sample_set_ddir(iolog, s, ddir);
        s->bs = bs;
 
        if (iolog->log_offset) {