These patches are backport for the 5.15 branch.
This series backports fixes for expecting the number of on-going write extents on zoned mode.
It picks up patches 1 to 3 for the dependencies of patches 4 and 5.
Christoph Hellwig (1): block: add a bdev_max_zone_append_sectors helper
Naohiro Aota (4): block: add bdev_max_segments() helper btrfs: zoned: revive max_zone_append_bytes btrfs: replace BTRFS_MAX_EXTENT_SIZE with fs_info->max_extent_size btrfs: convert count_max_extents() to use fs_info->max_extent_size
drivers/nvme/target/zns.c | 3 +-- fs/btrfs/ctree.h | 29 +++++++++++++++++++++-------- fs/btrfs/delalloc-space.c | 6 +++--- fs/btrfs/disk-io.c | 2 ++ fs/btrfs/extent_io.c | 4 +++- fs/btrfs/inode.c | 22 ++++++++++++---------- fs/btrfs/zoned.c | 20 ++++++++++++++++++++ fs/btrfs/zoned.h | 1 + fs/zonefs/super.c | 3 +-- include/linux/blkdev.h | 11 +++++++++++ 10 files changed, 75 insertions(+), 26 deletions(-)