Scramble on a 512b boundary
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Sep 2011 20:45:27 +0000 (22:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Sep 2011 20:47:15 +0000 (22:47 +0200)
commit23f394d5d70902c6f1d71ac03fa1d70e13c9c0b9
treeadaf9f4e602c6e377ca32b6998b7e611577e2c32
parentde78976982fe7f57ccadd15a19dae167f0ce62ab
Scramble on a 512b boundary

Instead of just scrambling the full block at the beginning at the
end, make it a bit more clever by:

- Doing it at 512b intervals to ensure full 512b de-dupe attemts, and
- Do it at a "random" offset into that block.

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