btrfs: use KMEM_CACHE() to create delayed ref caches
authorKunwu Chan <chentao@kylinos.cn>
Tue, 20 Feb 2024 09:06:44 +0000 (17:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:53 +0000 (16:24 +0100)
commitb2c7d55e4c4c405125c66ce8ca86a6ea0496bb0d
tree0bd0de7d15416bbd818563da44f742235df25247
parent66ce5447d8686f99b510aa48fe69934a93b1dbe8
btrfs: use KMEM_CACHE() to create delayed ref caches

Use the KMEM_CACHE() macro instead of kmem_cache_create() to simplify
the creation of SLAB caches related to delayed refs when the default
values are used.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c