btrfs: use KMEM_CACHE() to create btrfs_path cache
authorKunwu Chan <chentao@kylinos.cn>
Tue, 20 Feb 2024 09:06:43 +0000 (17:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:53 +0000 (16:24 +0100)
commit66ce5447d8686f99b510aa48fe69934a93b1dbe8
treef336bd377e934b1fd564474dccf18145558082bf
parent2753b4d8282e2cad95ff82fcea07059e3d52ac54
btrfs: use KMEM_CACHE() to create btrfs_path cache

Use the KMEM_CACHE() macro instead of kmem_cache_create() to simplify
the creation of SLAB caches 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/ctree.c