X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.c;h=fd63119888327fff8705bbdef066b910d8f37d1e;hb=2ef124c6e619a7e53954ccaa3c800a6196386f25;hp=39d68d1f9ae082fc391a66323027ba30157081f4;hpb=035538530f86a5b3ecb8c9d0ec031562ec9b6028;p=fio.git diff --git a/io_u.c b/io_u.c index 39d68d1f..fd631198 100644 --- a/io_u.c +++ b/io_u.c @@ -1654,10 +1654,6 @@ struct io_u *get_io_u(struct thread_data *td) populate_verify_io_u(td, io_u); do_scramble = 0; } -#ifdef CONFIG_CUDA - if (td->o.mem_type == MEM_CUDA_MALLOC) - do_scramble = 0; -#endif } else if (io_u->ddir == DDIR_READ) { /* * Reset the buf_filled parameters so next time if the @@ -2049,9 +2045,8 @@ void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write, { struct thread_options *o = &td->o; -#ifdef CONFIG_CUDA - if (o->mem_type == MEM_CUDA_MALLOC) return; -#endif + if (o->mem_type == MEM_CUDA_MALLOC) + return; if (o->compress_percentage || o->dedupe_percentage) { unsigned int perc = td->o.compress_percentage;