From bc095aab789a2e7d036c6d499f6c124a0c2d5de0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 27 Sep 2014 21:29:03 -0600 Subject: [PATCH] t/dedupe: fixup bloom entry calculation With m/n at 8x and with 5 default hashes for blooming, we should be around ~2% false positive rate max. Signed-off-by: Jens Axboe --- t/dedupe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/dedupe.c b/t/dedupe.c index 12ede8f0..f9fb8c4a 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -452,7 +452,7 @@ static int dedupe_check(const char *filename, uint64_t *nextents, if (use_bloom) { uint64_t bloom_entries; - bloom_entries = (3 * dev_size ) / (blocksize * 2); + bloom_entries = 8 * (dev_size / blocksize); bloom = bloom_new(bloom_entries); } -- 2.25.1