commit | 18093d1c0d1e032142ee24825678b0a8977d74ba | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Tue Mar 24 00:50:25 2015 +1100 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 23 22:07:52 2015 -0400 |
tree | 2740fc6be545509613d41984d161efdb97f5d4f2 | |
parent | 6d022949810b1ea82d46a576d6166035720bbb32 [diff] |
rhashtable: Shrink to fit This patch changes rhashtable_shrink to shrink to the smallest size possible rather than halving the table. This is needed because with multiple rehashing we will defer shrinking until all other rehashing is done, meaning that when we do shrink we may be able to shrink a lot. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>