1
0
Fork 0

Btrfs: do not unnecessarily pass write_lock_level when processing leaf

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 <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
hifive-unleashed-5.1
Liu Bo 2018-08-14 10:46:53 +08:00 committed by David Sterba
parent 4fd786e6c3
commit 4b6f8e9695
1 changed files with 1 additions and 1 deletions

View File

@ -2910,7 +2910,7 @@ cow_done:
}
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;
}
}