Only populate the write buffer if necessary
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 26 Mar 2018 16:00:28 +0000 (09:00 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Wed, 4 Apr 2018 20:51:39 +0000 (13:51 -0700)
commit5c5c33c1b0df088187a6d4fac5459df5e029763a
tree44cbfe868ca92ad8b29168e166d67d506f89b218
parent553f965256ab58b0e0958b0e367d8e63698f7a26
Only populate the write buffer if necessary

This patch moves the populate_verify_io_u() call from inside
get_io_u() into all its callers except do_dry_run() and thereby skips
write buffer population for dry runs. This patch does not change the
behavior of fio but is necessary because the ZBC patch will insert
code in fill_io_u() after the get_io_u() call that may modify the
write offset.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
backend.c
io_u.c