]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rhashtable: Use __always_inline instead of inline
authorMenglong Dong <menglong8.dong@gmail.com>
Fri, 29 Aug 2025 07:28:44 +0000 (15:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Sep 2025 07:57:23 +0000 (15:57 +0800)
commit1544344563376b2a2ae2af5af1db00d6410c18e0
tree1da7a029d110269361c29d216b3a74e291d712ac
parentab315f7288b75c289cf4a81d18d6b21e13022364
rhashtable: Use __always_inline instead of inline

Sometimes, the compiler is not clever enough to inline the
rhashtable_lookup() for us, even if the "obj_cmpfn" and "key_len" in
params is const. This can introduce more overhead.

Therefore, use __always_inline for the rhashtable.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/rhashtable.h