diff options
author | Nikolay Borisov <[email protected]> | 2020-09-01 17:39:58 +0300 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-10-07 12:13:18 +0200 |
commit | 3dc9dc8969dc738285cb7d43e852c98459c8f0a9 (patch) | |
tree | ea1c82d5921d5eb693da5eb98430aa0b28a27c21 /scripts/gcc-plugins | |
parent | fc0716c2f6afed06a9306db3fb62cc1fcf389757 (diff) |
btrfs: eliminate total_size parameter from setup_items_for_insert
The value of this argument can be derived from the total_data as it's
simply the value of the data size + size of btrfs_items being touched.
Move the parameter calculation inside the function. This results in a
simpler interface and also a minor size reduction:
./scripts/bloat-o-meter ctree.original fs/btrfs/ctree.o
add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-34 (-34)
Function old new delta
btrfs_duplicate_item 260 259 -1
setup_items_for_insert 1200 1190 -10
btrfs_insert_empty_items 177 154 -23
Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions