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>
This commit is contained in:
committed by
David Sterba
parent
91df99a6eb
commit
e380adfc21
@@ -3762,7 +3762,7 @@ static noinline_for_stack int __extent_writepage_io(struct btrfs_inode *inode,
|
||||
/* Note that em_end from extent_map_end() is exclusive */
|
||||
iosize = min(em_end, end + 1) - cur;
|
||||
|
||||
if (btrfs_use_zone_append(inode, em))
|
||||
if (btrfs_use_zone_append(inode, em->block_start))
|
||||
opf = REQ_OP_ZONE_APPEND;
|
||||
|
||||
free_extent_map(em);
|
||||
|
||||
Reference in New Issue
Block a user