mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-20 21:40:29 +00:00
The bloom filter had two bad bugs. First the calculation was adding the bit width of newly hashed data to the hash value instead of the record of the hashed bits available. And the block offset calculation for each bit wasn't truncated to the number of bloom blocks. While fixing this we can clean up the code and make it faster by recording the bits in terms of their block and bit offset instead of their large bit value. Signed-off-by: Zach Brown <zab@versity.com>