diff options
author | Qu Wenruo <[email protected]> | 2021-09-27 15:21:53 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2021-10-26 19:08:04 +0200 |
commit | 22c306fe0db7191df3d43938efd42423edf95f4d (patch) | |
tree | 15a98888d6735b8eb841dff6f546a458cd7b7e62 /tools/perf/scripts/python/libxed.py | |
parent | 2d4e0b84b4d099a08dc0da80dc1ffe8ed38fb5b2 (diff) |
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 <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions