btrfs: send: remove duplicated logic from fs_path_reset()
authorFilipe Manana <fdmanana@suse.com>
Thu, 19 Sep 2024 10:32:06 +0000 (11:32 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:44 +0000 (20:35 +0100)
commit75dfc5d0cabb9dfb071583e1e30facee6a113227
tree17a2703e4d44d895cbb8bacd91fbdc0a4745c7b5
parenta4bb776cbe4ce8ad5f71667a75d1a5bef53f399f
btrfs: send: remove duplicated logic from fs_path_reset()

There's duplicated logic in both branches of the if statement, so move it
outside the branches.

This also reduces the object code size.

Before this change:

  $ size fs/btrfs/btrfs.ko
     text    data     bss     dec     hex filename
  1746279  163600   16920 1926799  1d668f fs/btrfs/btrfs.ko

After this change:

  $ size fs/btrfs/btrfs.ko
     text    data     bss     dec     hex filename
  1746047  163592   16920 1926559  1d659f 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>
fs/btrfs/send.c