Re: [PATCH] rhashtable: use __always_inline for rhashtable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 29, 2025 at 03:28:44PM +0800, Menglong Dong wrote:
> 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@xxxxxxxxxxxxxxx>
> ---
>  include/linux/rhashtable.h | 42 +++++++++++++++++++-------------------
>  1 file changed, 21 insertions(+), 21 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux