diff options
author | 2021-09-27 15:21:53 +0800 | |
---|---|---|
committer | 2021-10-26 19:08:04 +0200 | |
commit | 22c306fe0db7191df3d43938efd42423edf95f4d (patch) | |
tree | 15a98888d6735b8eb841dff6f546a458cd7b7e62 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: introduce submit_compressed_bio() for compression (diff) | |
download | wireguard-linux-22c306fe0db7191df3d43938efd42423edf95f4d.tar.xz wireguard-linux-22c306fe0db7191df3d43938efd42423edf95f4d.zip |
btrfs: introduce alloc_compressed_bio() for compression
Just aggregate the bio allocation code into one helper, so that we can
replace 4 call sites.
There is one special note for zoned write.
Currently btrfs_submit_compressed_write() will only allocate the first
bio using ZONE_APPEND. If we have to submit current bio due to stripe
boundary, the new bio allocated will not use ZONE_APPEND.
In theory this should be a bug, but considering zoned mode currently
only support SINGLE profile, which doesn't have any stripe boundary
limit, it should never be a problem and we have assertions in place.
This function will provide a good entrance for any work which needs to
be done at bio allocation time. Like determining the stripe boundary.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions