projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into urcu/ht-shrink
[urcu.git]
/
rculfhash.c
diff --git
a/rculfhash.c
b/rculfhash.c
index 5ef2c781e3f6330ca631910df85f0a8ef92de954..d04451fece7ac744cb0b894b1f2b5e3803b9785f 100644
(file)
--- a/
rculfhash.c
+++ b/
rculfhash.c
@@
-1275,14
+1275,8
@@
struct cds_lfht *_cds_lfht_new(unsigned long init_size,
* Memory management plugin default.
*/
if (!mm) {
* Memory management plugin default.
*/
if (!mm) {
- if (!max_nr_buckets) {
- /*
- * If the maximum number of buckets is not
- * specified, we cannot use the mmap allocator,
- * so fallback on order allocator.
- */
- mm = &cds_lfht_mm_order;
- } else if (CAA_BITS_PER_LONG > 32
+ if (CAA_BITS_PER_LONG > 32
+ && max_nr_buckets
&& max_nr_buckets <= (1ULL << 32)) {
/*
* For 64-bit architectures, with max number of
&& max_nr_buckets <= (1ULL << 32)) {
/*
* For 64-bit architectures, with max number of
This page took
0.037851 seconds
and
4
git commands to generate.