aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2018-08-14 10:46:53 +0800
committerDavid Sterba <[email protected]>2018-10-15 17:23:26 +0200
commit4b6f8e9695da65e29f9f8ee84b39e0ba5b45e8e9 (patch)
tree1bb0321b612f8a0a5c08985151fd0ed085221f8c
parent4fd786e6c3d67b1348e0ad4f450efe9fc9d7a306 (diff)
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}