btrfs: use KMEM_CACHE() to create btrfs_free_space cache
authorKunwu Chan <chentao@kylinos.cn>
Tue, 20 Feb 2024 09:06:45 +0000 (17:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:54 +0000 (16:24 +0100)
commit06c9564980f1748a88e4bcf710d7811bc54784be
treea1be1164f76021f80ab29dc91240236f4326d819
parentb2c7d55e4c4c405125c66ce8ca86a6ea0496bb0d
btrfs: use KMEM_CACHE() to create btrfs_free_space 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/free-space-cache.c