diff options
| author | 2025-12-10 19:02:34 +1030 | |
|---|---|---|
| committer | 2026-02-03 06:38:32 +0100 | |
| commit | e6698b34fab33867ef3faeeea6feb165f31aae24 (patch) | |
| tree | ed4780e938ead8437213e2559cb095105bc5471c /scripts/Makefile.thinlto | |
| parent | btrfs: concentrate the error handling of submit_one_sector() (diff) | |
btrfs: replace for_each_set_bit() with for_each_set_bitmap()
Inside extent_io.c, there are several simple call sites doing things
like:
for_each_set_bit(bit, bitmap, bitmap_size) {
/* handle one fs block */
}
The workload includes:
- set_bit()
Inside extent_writepage_io().
This can be replaced with a bitmap_set().
- btrfs_folio_set_lock()
- btrfs_mark_ordered_io_finished()
Inside writepage_delalloc().
Instead of calling it multiple times, we can pass a range into the
function with one call.
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
