diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2021-05-19 00:40:27 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-05-20 15:50:49 +0200 |
commit | e380adfc213a13677993c0e35cb48f5a8e61ebb0 (patch) | |
tree | 183187adf38b6281f0abd6a71781cc04b5ede30f /fs/btrfs/extent_io.c | |
parent | 91df99a6eb50d5a1bc70fff4a09a0b7ae6aab96d (diff) | |
download | lwn-e380adfc213a13677993c0e35cb48f5a8e61ebb0.tar.gz lwn-e380adfc213a13677993c0e35cb48f5a8e61ebb0.zip |
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 360d997c7226..d9f20ca3ac7d 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -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); |