]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dccp: Simplify the allocation of slab caches in dccp_ackvec_init
authorKunwu Chan <chentao@kylinos.cn>
Wed, 31 Jan 2024 09:08:51 +0000 (17:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Feb 2024 12:19:26 +0000 (12:19 +0000)
commit20ea9327c2fd545d6b96e998727bcd724290694d
tree61e5f59c86414127d7c944df7bc320ff2931ad09
parent84f90efd5076525a581e3f923f6c86579f41e713
net: dccp: Simplify the allocation of slab caches in dccp_ackvec_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>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ackvec.c