diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2020-11-10 20:26:09 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-09 19:16:04 +0100 |
commit | 862931c76327e54d49c30d80c333f552dca18489 (patch) | |
tree | 2754b1621ecb194104192d4973340fb7e8321f7f /fs/btrfs/zoned.h | |
parent | b70f509774ad4b75d4253ad23b65c35d89402026 (diff) | |
download | lwn-862931c76327e54d49c30d80c333f552dca18489.tar.gz lwn-862931c76327e54d49c30d80c333f552dca18489.zip |
btrfs: introduce max_zone_append_size
The zone append write command has a maximum IO size restriction it
accepts. This is because a zone append write command cannot be split, as
we ask the device to place the data into a specific target zone and the
device responds with the actual written location of the data.
Introduce max_zone_append_size to zone_info and fs_info to track the
value, so we can limit all I/O to a zoned block device that we want to
write using the zone append command to the device's limits.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.h')
-rw-r--r-- | fs/btrfs/zoned.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/zoned.h b/fs/btrfs/zoned.h index e4ee1a50be2d..bb2afc7320a4 100644 --- a/fs/btrfs/zoned.h +++ b/fs/btrfs/zoned.h @@ -13,6 +13,7 @@ struct btrfs_zoned_device_info { */ u64 zone_size; u8 zone_size_shift; + u64 max_zone_append_size; u32 nr_zones; unsigned long *seq_zones; unsigned long *empty_zones; |