summaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2015-03-19 23:31:13 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-20 02:02:23 +0100
commita998f712f77ea4892d3fcf24e0a67603e63da128 (patch)
tree784c021c158fe38467363f023401520872c4ab30 /net/dccp
parenti40e: add NVM update events to AQ clean (diff)
downloadlinux-a998f712f77ea4892d3fcf24e0a67603e63da128.tar.xz
linux-a998f712f77ea4892d3fcf24e0a67603e63da128.zip
rhashtable: Round up/down min/max_size to ensure we respect limit
Round up min_size respectively round down max_size to the next power of two to make sure we always respect the limit specified by the user. This is required because we compare the table size against the limit before we expand or shrink. Also fixes a minor bug where we modified min_size in the params provided instead of the copy stored in struct rhashtable. Signed-off-by: Thomas Graf <tgraf@suug.ch> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
0 files changed, 0 insertions, 0 deletions