net: rds: Simplify the allocation of slab caches in rds_conn_init
authorKunwu Chan <chentao@kylinos.cn>
Wed, 24 Jan 2024 07:58:01 +0000 (15:58 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Jan 2024 01:08:19 +0000 (17:08 -0800)
commit047a7d261be652e0a8c756ac75936cc0dc537fc6
tree2c0fe6c64a4ce6cae57692e7483c97aad0ae1d0f
parentd0005e76b73b095138cee9d662831761ffde84a8
net: rds: Simplify the allocation of slab caches in rds_conn_init

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240124075801.471330-1-chentao@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rds/connection.c