projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bloom: allow to pass in whether to set bits for strings
[fio.git]
/
lib
/
bloom.c
diff --git
a/lib/bloom.c
b/lib/bloom.c
index c2e6c11f2e1444020ae18225f8277938827c37f9..9ccec5fa14a0c2cf2d6794efc754a9e894cab06b 100644
(file)
--- a/
lib/bloom.c
+++ b/
lib/bloom.c
@@
-118,7
+118,8
@@
bool bloom_set(struct bloom *b, uint32_t *data, unsigned int nwords)
return __bloom_check(b, data, nwords * sizeof(uint32_t), true);
}
return __bloom_check(b, data, nwords * sizeof(uint32_t), true);
}
-bool bloom_set_string(struct bloom *b, const char *data, unsigned int len)
+bool bloom_string(struct bloom *b, const char *data, unsigned int len,
+ bool set)
{
{
- return __bloom_check(b, data, len,
true
);
+ return __bloom_check(b, data, len,
set
);
}
}