From: Liu Bo Date: Tue, 14 Aug 2018 02:46:53 +0000 (+0800) Subject: Btrfs: do not unnecessarily pass write_lock_level when processing leaf X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4b6f8e9695da65e29f9f8ee84b39e0ba5b45e8e9;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 1f71695cb0a8..1124d236291d 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -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; } }