PATCH: don't log iopiece when do_verify is off.

From: Shawn Lewis <shawnlewis_at_google.com>
Date: Tue, 20 Nov 2007 15:05:04 -0800 (PST)

Don't log an iopiece if do_verify is off. This allows us to do large write
phases (with verify headers) without using a lot of memory.

diff --git a/io_u.c b/io_u.c
index cab0980..93c451c 100644
--- a/io_u.c
+++ b/io_u.c
@@ -763,6 +763,7 @@ static void io_completed(struct thread_d
                 io_u_mark_latency(td, usec);
 
                 if (td_write(td) && idx == DDIR_WRITE &&
+ td->o.do_verify &&
                     td->o.verify != VERIFY_NONE)
                         log_io_piece(td, io_u);
 
Received on Wed Nov 21 2007 - 00:05:04 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 21 2007 - 00:30:01 CET