Commit d1ed82f3 authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

btrfs: remove root argument from check_item_in_log()



The root argument passed to check_item_in_log() always matches the root
of the given directory, so it can be eliminated.

Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 6d9cc072
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2280,13 +2280,13 @@ static noinline int find_dir_range(struct btrfs_root *root,
 * to is unlinked
 */
static noinline int check_item_in_log(struct btrfs_trans_handle *trans,
				      struct btrfs_root *root,
				      struct btrfs_root *log,
				      struct btrfs_path *path,
				      struct btrfs_path *log_path,
				      struct inode *dir,
				      struct btrfs_key *dir_key)
{
	struct btrfs_root *root = BTRFS_I(dir)->root;
	int ret;
	struct extent_buffer *eb;
	int slot;
@@ -2560,7 +2560,7 @@ static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans,
			if (found_key.offset > range_end)
				break;

			ret = check_item_in_log(trans, root, log, path,
			ret = check_item_in_log(trans, log, path,
						log_path, dir,
						&found_key);
			if (ret)