]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: put block group after final usage
authorNikolay Borisov <nborisov@suse.com>
Mon, 7 Mar 2022 13:30:02 +0000 (15:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2022 12:13:54 +0000 (13:13 +0100)
commit976b652c15be889e6da49c30ea47f29789fd7b61
treebf895d0131bffbbd0c7a5cd40ba497ddee137037
parentac987a312d13a9af7d7725c0cc18f4c1faa6971a
btrfs: zoned: put block group after final usage

It's counter-intuitive (and wrong) to put the block group _before_ the
final usage in submit_eb_page. Fix it by re-ordering the call to
btrfs_put_block_group after its final reference. Also fix a minor typo
in 'implies'

Fixes: 987424deb96a ("btrfs: zoned: finish fully written block group")
CC: stable@vger.kernel.org # 5.16+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c