summaryrefslogtreecommitdiff
path: root/lib/is_single_threaded.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2018-07-16 23:26:13 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-18 23:27:43 +0300
commit107d01f5ba10f4162c38109496607eb197059064 (patch)
treedbb381487b49fdd6500187fbb7816b521a4f403b /lib/is_single_threaded.c
parent08239d43487b929471eda42b15fd61db1e078d88 (diff)
downloadlinux-107d01f5ba10f4162c38109496607eb197059064.tar.xz
lib/rhashtable: consider param->min_size when setting initial table size
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>
Diffstat (limited to 'lib/is_single_threaded.c')
0 files changed, 0 insertions, 0 deletions