]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: consolidate zone finish functions
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 4 May 2022 00:48:51 +0000 (17:48 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:32 +0000 (17:17 +0200)
commit820fb3e8598fcbb39d331166eeb605a9ab401b3a
tree1a4f3c0d12766438385d35e0e886e1517f20d23f
parent3b813cc9120e3a046c13e780094d6d77fa2c6590
btrfs: zoned: consolidate zone finish functions

btrfs_zone_finish() and btrfs_zone_finish_endio() have similar code.
Introduce do_zone_finish() to factor out the common code.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c