]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: finish block group when there are no more allocatable bytes left
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 4 May 2022 00:48:52 +0000 (17:48 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:32 +0000 (17:17 +0200)
commit0371817002b57d10f99098feaae836adf1d22204
tree145d95377538e175df106ce9e6e9716ee860bd8b
parent7f31a704798809095be623312c98ab7d3ae7925d
btrfs: zoned: finish block group when there are no more allocatable bytes left

Currently, btrfs_zone_finish_endio() finishes a block group only when the
written region reaches the end of the block group. We can also finish the
block group when no more allocation is possible.

Fixes: 987424deb96a ("btrfs: zoned: finish fully written block group")
CC: stable@vger.kernel.org # 5.16+
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c