Skip to content

Commit 25d0092

Browse files
fdmananakdave
authored andcommitted
btrfs: update check_skip variable after unlocking current node
There's no need to update the local variable 'check_skip' to false inside the critical section delimited by the lock of the current node, so do it after unlocking the node. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent e0556a4 commit 25d0092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/ctree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,8 +1461,8 @@ static noinline void unlock_up(struct btrfs_path *path, int level,
14611461
}
14621462

14631463
if (i >= lowest_unlock && i > skip_level) {
1464-
check_skip = false;
14651464
btrfs_tree_unlock_rw(path->nodes[i], path->locks[i]);
1465+
check_skip = false;
14661466
path->locks[i] = 0;
14671467
if (write_lock_level &&
14681468
i > min_write_lock_level &&

0 commit comments

Comments
 (0)