projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into gfio
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 3d90c8a5f6f70fa91147243f88f1052f08b01633..3041ac45fed2ac66a77af0f6a811747eaa74cf34 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-568,6
+568,15
@@
static int fixup_options(struct thread_data *td)
}
#endif
+ /*
+ * For fully compressible data, just zero them at init time.
+ * It's faster than repeatedly filling it.
+ */
+ if (td->o.compress_percentage == 100) {
+ td->o.zero_buffers = 1;
+ td->o.compress_percentage = 0;
+ }
+
return ret;
}