diff options
| author | Christoph Hellwig <[email protected]> | 2023-01-21 06:50:30 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-02-15 18:38:53 +0000 |
| commit | d5e4377d505189c30df50d54f9944d7fb8d528bb (patch) | |
| tree | 6eb5e035002e63d9ef931934b30199bca9fc3b75 /fs/btrfs/compression.h | |
| parent | btrfs: calculate file system wide queue limit for zoned mode (diff) | |
| download | kernel-d5e4377d505189c30df50d54f9944d7fb8d528bb.tar.gz kernel-d5e4377d505189c30df50d54f9944d7fb8d528bb.zip | |
btrfs: split zone append bios in btrfs_submit_bio
The current btrfs zoned device support is a little cumbersome in the data
I/O path as it requires the callers to not issue I/O larger than the
supported ZONE_APPEND size of the underlying device. This leads to a lot
of extra accounting. Instead change btrfs_submit_bio so that it can take
write bios of arbitrary size and form from the upper layers, and just
split them internally to the ZONE_APPEND queue limits. Then remove all
the upper layer warts catering to limited write sized on zoned devices,
including the extra refcount in the compressed_bio.
Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
| -rw-r--r-- | fs/btrfs/compression.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h index 6209d40a1e08..a5e3377db9ad 100644 --- a/fs/btrfs/compression.h +++ b/fs/btrfs/compression.h @@ -31,9 +31,6 @@ static_assert((BTRFS_MAX_COMPRESSED % PAGE_SIZE) == 0); #define BTRFS_ZLIB_DEFAULT_LEVEL 3 struct compressed_bio { - /* Number of outstanding bios */ - refcount_t pending_ios; - /* Number of compressed pages in the array */ unsigned int nr_pages; |
