]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: Make rhashtable_init params argument const
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Mar 2015 10:56:59 +0000 (21:56 +1100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 20:16:24 +0000 (16:16 -0400)
commitaa01a0d50cf916a4dd42d244d118e1727dd8163d
treebcee7b730a66a4d7853310f8677778ccfb9484e3
parentfc7ad871efb0a94390c30f72b7b35b59d7d6df2e
rhashtable: Make rhashtable_init params argument const

This patch marks the rhashtable_init params argument const as
there is no reason to modify it since we will always make a copy
of it in the rhashtable.

This patch also fixes a bug where we don't actually round up the
value of min_size unless it is less than HASH_MIN_SIZE.

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>
include/linux/rhashtable.h
lib/rhashtable.c