diff options
| author | Daniel Vacek <neelx@suse.com> | 2026-09-02 15:56:27 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-05 14:55:38 +0200 |
| commit | 4d545c829d38b331bbe7f20dad2406b0a85c42c0 (patch) | |
| tree | 6f8baf82d1711f8d2de5e61133dcf804ecd35222 /include/uapi | |
| parent | 5a11eb41d7e41634c36819f2f61accd4290b21fd (diff) | |
| download | linux-next-4d545c829d38b331bbe7f20dad2406b0a85c42c0.tar.gz linux-next-4d545c829d38b331bbe7f20dad2406b0a85c42c0.zip | |
btrfs: use bio::remaining for async checksumming synchronization
We can use bio::remaining counter to sync the offloaded checksumming.
As a result we can slim down the btrfs_bio structure by 24 bytes
and simplify the code a bit.
Difference in pahole output:
- /* size: 328, cachelines: 6, members: 15 */
+ /* size: 304, cachelines: 5, members: 14 */
Moreover this will allow us enabling async checksumming with encryption
where we need to checksum the bounce bio instead of our regular one
embedded in btrfs_bio. And so we need to extend it's lifetime. This is
the preferred way to do so.
This also fixes a bug in experimental build where the async checksumming
was using the system workqueue instead of fs_info::endio_workers.
Fixes: dd57c78aec39 ("btrfs: introduce btrfs_bio::async_csum")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
