Messages in this thread | | | Date | Wed, 30 May 2018 02:15:10 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation |
| |
On Tue, May 29, 2018 at 10:55:13AM -0700, Davidlohr Bueso wrote: > On Wed, 30 May 2018, Herbert Xu wrote: > > > On Tue, May 29, 2018 at 09:42:31AM -0700, Davidlohr Bueso wrote: > > > > > > For the sake of simplicity, Linus suggested directly using HASH_MIN_SIZE > > > such that we have a single fallback. > > > > Where did he suggest that? > > https://lkml.org/lkml/2018/5/24/1265
Well I think we should respect min_size. rhashtable users may fail at insertion time if the table is too small.
Cheers, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |