btrfs: zoned: pass start block to btrfs_use_zone_append
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 18 May 2021 15:40:27 +0000 (00:40 +0900)
committerDavid Sterba <dsterba@suse.com>
Thu, 20 May 2021 13:50:49 +0000 (15:50 +0200)
commite380adfc213a13677993c0e35cb48f5a8e61ebb0
tree183187adf38b6281f0abd6a71781cc04b5ede30f
parent91df99a6eb50d5a1bc70fff4a09a0b7ae6aab96d
btrfs: zoned: pass start block to btrfs_use_zone_append

btrfs_use_zone_append only needs the passed in extent_map's block_start
member, so there's no need to pass in the full extent map.

This also enables the use of btrfs_use_zone_append in places where we only
have a start byte but no extent_map.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/zoned.c
fs/btrfs/zoned.h