btrfs: use KMEM_CACHE() to create btrfs_trans_handle cache
authorKunwu Chan <chentao@kylinos.cn>
Tue, 20 Feb 2024 09:06:42 +0000 (17:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:53 +0000 (16:24 +0100)
commit2753b4d8282e2cad95ff82fcea07059e3d52ac54
tree26e852ec95185b5a322680e6743a1833fdbec728
parent4bd3e126b2793313a5b85af5aefe51fefb1e205e
btrfs: use KMEM_CACHE() to create btrfs_trans_handle 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/transaction.c