btrfs: reuse exit helper for cleanup in btrfs_bioset_init()
authorYangtao Li <frank.li@vivo.com>
Tue, 15 Apr 2025 03:53:40 +0000 (21:53 -0600)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:46 +0000 (14:30 +0200)
commitc900f415be72f1611f0268f1e42473ed69befec1
tree859ce79851245a809981505d921ba289e7f84c37
parentaf4fc2818d8da70c1e283865cd4b41d80e5b8a84
btrfs: reuse exit helper for cleanup in btrfs_bioset_init()

Do not duplicate the cleanup after failed initialization
in btrfs_bioset_init() and reuse the exit function btrfs_bioset_exit().

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/bio.c