projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63f7f3
)
Only initialize random map if we are actually going to use it
author
Jens Axboe
<jens.axboe@oracle.com>
Sat, 1 Mar 2008 14:34:44 +0000
(15:34 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Sat, 1 Mar 2008 14:34:44 +0000
(15:34 +0100)
We alloc the randommap even for sequential workloads right now,
if the 'norandommap' option isn't given. Fix that, check for
td_random() before continuing.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index d10840a2374cad5d5cf8add743672756026c6d87..b29db3f3f237032db28c1ec1d4fdc4cc6b6c050f 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-497,7
+497,7
@@
int init_random_map(struct thread_data *td)
struct fio_file *f;
unsigned int i;
- if (td->o.norandommap)
+ if (td->o.norandommap
|| !td_random(td)
)
return 0;
for_each_file(td, f, i) {