On Sat, Jul 09, 2022 at 08:18:37AM +0900, Naohiro Aota wrote: > This series addresses mainly two issues on zoned btrfs' active zone > tracking and one issue which is a dependency of the main issue. > > * ChangeLog > - v2 > - Support sanity tests (Johannes) > - fs_info can be NULL while it is running sanity tests. Consider that > case in CONFIG_FS_BTRFS_RUN_SANITY_TESTS. > - Propagete an error of btrfs_zone_finish() (Johannes) > - Add a comment to max_segments limitation (Christoph) > - Rename btrfs_finish_one_bg() to btrfs_zone_finish_one_bg() to make the > it clear it is related to zoned code. > - Do not reduce active_total_bytes when finishing a block group. > - While it's no longer active, but it still can have "used" bytes. So, > it should be counted to host "total_bytes". Or, it breaks free space > calculation. > - Do not try to activate a fully allocated block group. The self tests are now working and I haven't seen any new errors in fstests, so I'll add the branch to misc-next soon. This will be probably the last big patchset before code freeze.