summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-09-27 10:21:53 +0300
committerDavid Sterba <dsterba@suse.com>2021-10-26 20:08:04 +0300
commit22c306fe0db7191df3d43938efd42423edf95f4d (patch)
tree15a98888d6735b8eb841dff6f546a458cd7b7e62 /scripts/generate_rust_analyzer.py
parent2d4e0b84b4d099a08dc0da80dc1ffe8ed38fb5b2 (diff)
downloadlinux-22c306fe0db7191df3d43938efd42423edf95f4d.tar.xz
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions