rds:Simplify the allocation of slab caches
authorHongfu Li <lihongfu@kylinos.cn>
Mon, 17 Jun 2024 07:54:35 +0000 (15:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2024 09:47:40 +0000 (10:47 +0100)
commit9f1f70dd850038b37e8b103ef0cc6f5eaeb6a8fc
tree16250bd0417503c7f3cbfbca2ee4dbaa2102dad3
parent382d1741b5b2feffef7942dd074206372afe1a96
rds:Simplify the allocation of slab caches

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

Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c
net/rds/tcp_recv.c