Skip to content

Commit

Permalink
Btrfs: do not unnecessarily pass write_lock_level when processing leaf
Browse files Browse the repository at this point in the history
As we're going to return right after the call, it's not necessary to get
update the new write_lock_level from unlock_up.

Signed-off-by: Liu Bo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
liubogithub authored and kdave committed Oct 15, 2018
1 parent 4fd786e commit 4b6f8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2910,7 +2910,7 @@ int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root,
}
if (!p->search_for_split)
unlock_up(p, level, lowest_unlock,
min_write_lock_level, &write_lock_level);
min_write_lock_level, NULL);
goto done;
}
}
Expand Down

0 comments on commit 4b6f8e9

Please sign in to comment.