diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2021-02-04 13:22:03 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-02-09 04:46:05 +0300 |
commit | 08f455593fff701e103876d4db5d3f4f6d0ff871 (patch) | |
tree | 21c7fd1247437897726a182c1b9eb91bdbae267f /fs/btrfs/ordered-data.c | |
parent | 138082f36610698e3fd00318f275d7f2159b8d26 (diff) | |
download | linux-08f455593fff701e103876d4db5d3f4f6d0ff871.tar.xz |
btrfs: zoned: cache if block group is on a sequential zone
On a zoned filesystem, cache if a block group is on a sequential write
only zone.
On sequential write only zones, we can use REQ_OP_ZONE_APPEND for
writing data, therefore provide btrfs_use_zone_append() to figure out if
IO is targeting a sequential write only zone and we can use
REQ_OP_ZONE_APPEND for data writing.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
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/ordered-data.c')
0 files changed, 0 insertions, 0 deletions