diff options
| author | Filipe Manana <[email protected]> | 2025-06-11 22:04:45 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 21:58:02 +0000 |
| commit | 497c726ff824c9339e4dbd174f702b2dafb70aeb (patch) | |
| tree | ccf006e412ae67a290347c9a572b327170c61fb9 /fs/btrfs/tree-log.c | |
| parent | btrfs: turn remove argument of modify_free_space_bitmap() to boolean (diff) | |
| download | kernel-497c726ff824c9339e4dbd174f702b2dafb70aeb.tar.gz kernel-497c726ff824c9339e4dbd174f702b2dafb70aeb.zip | |
btrfs: avoid double slot decrement at btrfs_convert_free_space_to_extents()
There's no need to subtract 1 from path->slots[0] and then decrement the
slot, we can reduce the generated assembly code by decrementing the slot
and then use it.
Module size before:
$ size fs/btrfs/btrfs.ko
text data bss dec hex filename
1846220 162998 16136 2025354 1ee78a fs/btrfs/btrfs.ko
Module size after:
$ size fs/btrfs/btrfs.ko
text data bss dec hex filename
1846204 162998 16136 2025338 1ee77a fs/btrfs/btrfs.ko
Reviewed-by: Boris Burkov <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions
