btrfs: remove root argument from btrfs_unlink_inode()
authorFilipe Manana <fdmanana@suse.com>
Mon, 25 Oct 2021 16:31:50 +0000 (17:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:30:09 +0000 (10:30 +0200)
commit7697ca60db067845d83d4b7d31e04678592649e5
tree086ade7771b39e733c6cacd1fd2a61586645b4b3
parent71beead997f56b1ecd43461d25b2c94c8bb27c50
btrfs: remove root argument from btrfs_unlink_inode()

[ Upstream commit 4467af8809299c12529b5c21481c1d44a3b209f9 ]

The root argument passed to btrfs_unlink_inode() and its callee,
__btrfs_unlink_inode(), always matches the root of the given directory and
the given inode. So remove the argument and make __btrfs_unlink_inode()
use the root of the directory.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/tree-log.c