From ff441ae84e9e02ca9877bc9cef9b529fbcb84167 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 18 Mar 2015 10:31:49 -0600 Subject: [PATCH] Revert "Scramble IO buffers unless explicitly told not" This reverts commit 7d1bb70f3d85d041b4b7dd926e98054fea980bdc. --- io_u.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io_u.c b/io_u.c index a45dd402..975d2424 100644 --- a/io_u.c +++ b/io_u.c @@ -1484,8 +1484,7 @@ struct io_u *get_io_u(struct thread_data *td) io_u_fill_buffer(td, io_u, td->o.min_bs[DDIR_WRITE], io_u->xfer_buflen); - } - if ((td->flags & TD_F_SCRAMBLE_BUFFERS) && + } else if ((td->flags & TD_F_SCRAMBLE_BUFFERS) && !(td->flags & TD_F_COMPRESS)) do_scramble = 1; if (td->flags & TD_F_VER_NONE) { -- 2.25.1