diff options
author | Thomas Graf <[email protected]> | 2015-03-19 22:31:13 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-03-19 21:02:23 -0400 |
commit | a998f712f77ea4892d3fcf24e0a67603e63da128 (patch) | |
tree | 784c021c158fe38467363f023401520872c4ab30 /net/ipv4/tcp_timer.c | |
parent | 91a0f930560171e5d45465d05fd4e66a5ee3a745 (diff) |
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 <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions