Files
twx-linux/lib
Davidlohr Bueso b67a684222 lib/rhashtable: consider param->min_size when setting initial table size
[ Upstream commit 107d01f5ba ]

rhashtable_init() currently does not take into account the user-passed
min_size parameter unless param->nelem_hint is set as well. As such,
the default size (number of buckets) will always be HASH_DEFAULT_SIZE
even if the smallest allowed size is larger than that. Remediate this
by unconditionally calling into rounded_hashtable_size() and handling
things accordingly.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-25 10:18:16 +02:00
..
…
2018-03-03 10:19:42 +01:00
…
2015-07-27 14:06:24 +02:00
…
…
…
…
…
2015-11-23 09:44:58 +01:00
2015-05-28 11:31:52 +09:30
…
…
…
…
…
…
…
…
2015-10-05 04:49:54 +01:00
2015-11-09 15:11:24 -08:00
…
…
…
…
…
…
…
…
…
…
2016-09-24 10:07:43 +02:00
2016-03-03 15:07:24 -08:00
2018-02-25 11:03:52 +01:00
…
…
…
…
…
…
…
…
…
2015-06-25 17:00:40 -07:00
2016-10-28 03:01:30 -04:00
…
…
…
…
…