diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-03-13 19:55:54 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:56 +0300 |
commit | 37b0c3150bcb72fe51aa7c7660fcb54c06c84427 (patch) | |
tree | a026b26f404eb5f38379d0582570b436cf716586 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 6f7d81d88bf099b00ebba61eb9834e8b78862849 (diff) | |
download | linux-37b0c3150bcb72fe51aa7c7660fcb54c06c84427.tar.xz |
btrfs: remove redundant else statement from btrfs_log_inode_parent()
If we don't need to log new directory dentries, there's no point in having
an else branch just to set 'ret' to zero, as it's already zero because
every time it gets a non-zero value we jump into one of the exit labels.
So remove it, which reduces source code size and the module text size.
Before this change:
$ size fs/btrfs/btrfs.ko
text data bss dec hex filename
1813855 163737 16920 1994512 1e6f10 fs/btrfs/btrfs.ko
After this change:
$ size fs/btrfs/btrfs.ko
text data bss dec hex filename
1813807 163737 16920 1994464 1e6ee0 fs/btrfs/btrfs.ko
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions