]> git.ipfire.org Git - thirdparty/linux.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)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:12 +0000 (16:44 +0200)
commit8befc61cbba2d4567122d400542da8900a352971
treed5790fa054f39c0c917fa07f6775d77d215510f2
parent0a325e620e1a0e266c083a06343497b376705a9d
btrfs: remove redundant root argument from fixup_inode_link_count()

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