Btrfs: remove always true check in unlock_up
As unlock_up() is written as for () { if (!path->locks[i]) break; ... if (... && path->locks[i]) { } } Apparently, @path->locks[i] is always true at this 'if'. Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com> Reviewed-by: David Sterba <dsterba@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
662c653bfd
commit
d80bb3f905
|
@ -2330,7 +2330,7 @@ static noinline void unlock_up(struct btrfs_path *path, int level,
|
|||
no_skips = 1;
|
||||
|
||||
t = path->nodes[i];
|
||||
if (i >= lowest_unlock && i > skip_level && path->locks[i]) {
|
||||
if (i >= lowest_unlock && i > skip_level) {
|
||||
btrfs_tree_unlock_rw(t, path->locks[i]);
|
||||
path->locks[i] = 0;
|
||||
if (write_lock_level &&
|
||||
|
|
Loading…
Reference in New Issue