diff options
| author | David Sterba <dsterba@suse.com> | 2026-01-06 17:20:27 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-04-07 18:56:07 +0200 |
| commit | b8aa337121ddfb050199ecda57b0654d5e3d91e9 (patch) | |
| tree | 6a367c122eea5bd0f6de1ba47c547d5b5a445997 /rust/kernel/gpu/git@git.tavy.me:linux-stable.git | |
| parent | aae90421940a7c9a3bb783ec031435ba069fe3c5 (diff) | |
btrfs: read eb folio index right before loops
There are generic helpers to access extent buffer folio data of any
length, potentially iterating over a few of them. This is a slow path,
either we use the type based accessors or the eb folio allocation is
contiguous and we can use the memcpy/memcmp helpers.
The initialization of 'i' is done at the beginning though it may not be
needed. Move it right before the folio loop, this has minor effect on
generated code in __write_extent_buffer().
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/kernel/gpu/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
