Scramble default write buffer contents slightly
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Sep 2011 20:11:23 +0000 (22:11 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 16 Sep 2011 20:13:54 +0000 (22:13 +0200)
commitde78976982fe7f57ccadd15a19dae167f0ce62ab
tree9050ef71bd1101728f6015bc3db52847c1d180b7
parent723cd80afc9fdb3ca816067eb1e4790052ff6d07
Scramble default write buffer contents slightly

If we are worried about de-dupe making the output data too easy
to compress, but don't want the full incompressible guarantee
provided by refill_buffers=1 (since it's too costly), then lets
make their life a little harder by filling the offset of the IO
into the beginning of the buffer and the start time at the end
of the buffer. This will effectively default simple de-dupe
or compression attempts, while not doing the costly full buffer
refill.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c