lfsr: ensure that the cycle follows the randrepeat= setting
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2012 12:12:25 +0000 (13:12 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2012 12:12:25 +0000 (13:12 +0100)
commit82af46be1fa0c0e188bbb6723008fa33a510606f
tree53647d98731d6f4cdd676aaa0cddfa1420bdd73b
parentd24945f0f0538bea41704cbd9b593b350ca9bb0d
lfsr: ensure that the cycle follows the randrepeat= setting

Use the regular block offset seed to "seed" the lfsr generator,
so that it obeys randrepeat=0/1 as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
filesetup.c
lib/lfsr.c
lib/lfsr.h