]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: avoid unnecessary path allocation at fixup_inode_link_count()
authorFilipe Manana <fdmanana@suse.com>
Mon, 1 Sep 2025 11:43:42 +0000 (12:43 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:20 +0000 (08:49 +0200)
commit29d9c5e0370593cec8298601ab3e9ce29799fb6f
tree4abc8a46bd27cb2af24427afb0482f0e4cfe48df
parent2ac70946621ff3d90eb84d2e3b74563f4154f24c
btrfs: avoid unnecessary path allocation at fixup_inode_link_count()

There's no need to allocate a path as our single caller already has a
path that we can use. So pass the caller's path and use it.

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