]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: avoid unnecessary path allocation when replaying a dir item
authorFilipe Manana <fdmanana@suse.com>
Mon, 1 Sep 2025 15:37:05 +0000 (16:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:20 +0000 (08:49 +0200)
commitf366722f3370dd561d45e667484c458245977e79
treeff1febcc2521f288845c806493a61b419064c8df
parentb343047c1a08779efb0d2691a8c6391318025cc6
btrfs: avoid unnecessary path allocation when replaying a dir item

There's no need to allocate 'fixup_path' at replay_one_dir_item(), as the
path passed as an argument is unused by the time link_to_fixup_dir() is
called (replay_one_name() releases the path before it returns).

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/tree-log.c