]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: remove redundant root argument from fixup_inode_link_count()
authorFilipe Manana <fdmanana@suse.com>
Fri, 22 Sep 2023 10:37:26 +0000 (11:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:16 +0000 (18:35 +0200)
commite6031107f397725a8959934a8548c2a7772c73e5
treea1df2d5554ea838467bf6c8a7ee2a9389a337814
parent28a36e75d196af482f0c5138e991806d47c80b78
btrfs: remove redundant root argument from fixup_inode_link_count()

[ Upstream commit 8befc61cbba2d4567122d400542da8900a352971 ]

The root argument for fixup_inode_link_count() always matches the root of
the given inode, so remove the root argument and get it from the inode
argument. This also applies to the helpers count_inode_extrefs() and
count_inode_refs() used by fixup_inode_link_count() - they don't need the
root argument, as it always matches the root of the inode passed to them.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 5f61b961599a ("btrfs: fix inode lookup error handling during log replay")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/tree-log.c