summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorLiu Bo <bo.liu@linux.alibaba.com>2018-08-14 04:46:53 +0200
committerDavid Sterba <dsterba@suse.com>2018-10-15 17:23:26 +0200
commit4b6f8e9695da65e29f9f8ee84b39e0ba5b45e8e9 (patch)
tree1bb0321b612f8a0a5c08985151fd0ed085221f8c /fs/btrfs/ctree.c
parentbtrfs: Remove 'objectid' member from struct btrfs_root (diff)
downloadlinux-4b6f8e9695da65e29f9f8ee84b39e0ba5b45e8e9.tar.xz
linux-4b6f8e9695da65e29f9f8ee84b39e0ba5b45e8e9.zip
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>
Diffstat (limited to 'fs/btrfs/ctree.c')
-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;
}
}