diff options
author | Christoph Hellwig <hch@lst.de> | 2025-04-09 13:10:39 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:46 +0200 |
commit | 6f3f722df7254b7e652e042a93f7e2b011223af0 (patch) | |
tree | dd18696a2b439c2048b13d258351ba67ace722b0 /fs/btrfs/compression.c | |
parent | 959ddf28390bae9019f0681ea8a239181be1c0f9 (diff) |
btrfs: simplify bvec iteration in index_one_bio()
Flatten the two loops by open coding bio_for_each_segment() and advancing
the iterator one sector at a time.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Qu Wenruo <wqu@suse.com>
[ Fix a bug that @offset is not increased. ]
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions