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/ctree.h | |
parent | b70f509774ad4b75d4253ad23b65c35d89402026 (diff) | |
download | linux-862931c76327e54d49c30d80c333f552dca18489.tar.bz2 |
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/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8f20219e2caa..7fe74f6a2486 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -965,6 +965,9 @@ struct btrfs_fs_info { u64 zoned; }; + /* Max size to emit ZONE_APPEND write command */ + u64 max_zone_append_size; + #ifdef CONFIG_BTRFS_FS_REF_VERIFY spinlock_t ref_verify_lock; struct rb_root block_tree; |