diff options
author | 2021-09-27 15:21:52 +0800 | |
---|---|---|
committer | 2021-10-26 19:08:04 +0200 | |
commit | 2d4e0b84b4d099a08dc0da80dc1ffe8ed38fb5b2 (patch) | |
tree | 03c862d25263252cceeb935c0796113260774f15 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: handle errors properly inside btrfs_submit_compressed_write() (diff) | |
download | wireguard-linux-2d4e0b84b4d099a08dc0da80dc1ffe8ed38fb5b2.tar.xz wireguard-linux-2d4e0b84b4d099a08dc0da80dc1ffe8ed38fb5b2.zip |
btrfs: introduce submit_compressed_bio() for compression
The new helper, submit_compressed_bio(), will aggregate the following
work:
- Increase compressed_bio::pending_bios
- Remap the endio function
- Map and submit the bio
This slightly reorders calls to btrfs_csum_one_bio or
btrfs_lookup_bio_sums but but none of them does anything regarding IO
submission so this is effectively no change. We mainly care about order
of
- atomic_inc
- btrfs_bio_wq_end_io
- btrfs_map_bio
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