On Mon, Mar 23, 2015 at 08:33:19AM +0000, Thomas Graf wrote:
I'm not claiming you always want shrinking but what gain is there by
removing integrated support? Can you show numbers that the additional
branch actually hurts?
You never want automatic shrinking unless all your users are
trusted. I doubt there would be many rhashtable users where
this would apply. Even nft_hash is quite tenuous.
Besdies, if you really want automatic shrinking, you could always
do it in the caller of rhashtable_remove. That way only you
would pay for the cost and not everybody else.
Cheers,
--
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt