From 36361ebb75a8f543aa49ff4f3ee49274261da074 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 15 May 2007 11:12:19 +0200 Subject: [PATCH] iolog bug: TD_DDIR_READ should be TD_DDIR_WRITE It's a typo, if we don't have reads stored but writes, then the global direction should naturally be TD_DDIR_WRITE. Signed-off-by: Jens Axboe --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index fbc407d2..c0e9d4ae 100644 --- a/log.c +++ b/log.c @@ -158,7 +158,7 @@ static int init_iolog_read(struct thread_data *td) else if (reads && !writes) td->o.td_ddir = TD_DDIR_READ; else if (!reads && writes) - td->o.td_ddir = TD_DDIR_READ; + td->o.td_ddir = TD_DDIR_WRITE; else td->o.td_ddir = TD_DDIR_RW; -- 2.25.1