diff options
| author | David Sterba <dsterba@suse.com> | 2025-07-01 19:23:53 +0200 | 
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-07-22 00:09:21 +0200 | 
| commit | c8b33a57fba29733518d469be062ca6fea03203d (patch) | |
| tree | e3644b079bec35106627c3a40e8aa9bd9d33d990 /rust/helpers/pci.c | |
| parent | 1ed0f75d57aef3c447fbc78885c90421e40c1755 (diff) | |
btrfs: accessors: set target address at initialization
The target address for the read/write can be simplified as it's the same
expression for the first folio. This improves the generated code as the
folio address does not have to be cached on stack.
Stack usage reduction:
  btrfs_set_32                                           -8 (32 -> 24)
  btrfs_set_64                                           -8 (32 -> 24)
  btrfs_get_16                                           -8 (24 -> 16)
Code size reduction:
     text    data     bss     dec     hex filename
  1454459  115665   16088 1586212  183424 pre/btrfs.ko
  1454279  115665   16088 1586032  183370 post/btrfs.ko
  DELTA: -180
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions
