OSDN Git Service

btrfs: remove root argument from btrfs_unlink_inode()
authorFilipe Manana <fdmanana@suse.com>
Mon, 25 Oct 2021 16:31:50 +0000 (17:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 29 Oct 2021 10:39:13 +0000 (12:39 +0200)
commit4467af8809299c12529b5c21481c1d44a3b209f9
tree82eef56e1f8bb4e81d30871d4699ace1f50d5696
parent9798ba24cb76ea2f102811f3b670cab63b421092
btrfs: remove root argument from btrfs_unlink_inode()

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