Skip to content

Commit d1ed82f

Browse files
fdmananakdave
authored andcommitted
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: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 6d9cc07 commit d1ed82f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/tree-log.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,13 +2280,13 @@ static noinline int find_dir_range(struct btrfs_root *root,
22802280
* to is unlinked
22812281
*/
22822282
static noinline int check_item_in_log(struct btrfs_trans_handle *trans,
2283-
struct btrfs_root *root,
22842283
struct btrfs_root *log,
22852284
struct btrfs_path *path,
22862285
struct btrfs_path *log_path,
22872286
struct inode *dir,
22882287
struct btrfs_key *dir_key)
22892288
{
2289+
struct btrfs_root *root = BTRFS_I(dir)->root;
22902290
int ret;
22912291
struct extent_buffer *eb;
22922292
int slot;
@@ -2560,7 +2560,7 @@ static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans,
25602560
if (found_key.offset > range_end)
25612561
break;
25622562

2563-
ret = check_item_in_log(trans, root, log, path,
2563+
ret = check_item_in_log(trans, log, path,
25642564
log_path, dir,
25652565
&found_key);
25662566
if (ret)

0 commit comments

Comments
 (0)