Only initialize random map if we are actually going to use it
authorJens Axboe <jens.axboe@oracle.com>
Sat, 1 Mar 2008 14:34:44 +0000 (15:34 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 1 Mar 2008 14:34:44 +0000 (15:34 +0100)
commitde8dd119d7d869dd9c90c6d62bf4bededd10642e
tree152203f226de0ec7c43b3c7dda2510e9b9de378a
parentf63f7f3bbc49c72ee06f351bf3a7312df32f9e3c
Only initialize random map if we are actually going to use it

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