summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2020-11-07 00:27:34 +0300
committerDavid Sterba <dsterba@suse.com>2020-12-08 17:54:09 +0300
commitfe596ca3d3b5b005d940a20ee30a6f1c13dd2d19 (patch)
treeed7f50e7b70a50e656da00739c225a3ccd8da115 /fs/btrfs/ctree.c
parent1bb96598410ccd52f4224e5584b8015c6d61b81f (diff)
downloadlinux-fe596ca3d3b5b005d940a20ee30a6f1c13dd2d19.tar.xz
btrfs: use btrfs_tree_read_lock in btrfs_search_slot
We no longer use recursion, so __btrfs_tree_read_lock(BTRFS_NESTING_NORMAL) == btrfs_tree_read_lock. Replace this call with the simple helper. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.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 8148007fa259..778a6d580545 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -2802,7 +2802,7 @@ cow_done:
btrfs_tree_lock(b);
p->locks[level] = BTRFS_WRITE_LOCK;
} else {
- __btrfs_tree_read_lock(b, BTRFS_NESTING_NORMAL, 0);
+ btrfs_tree_read_lock(b);
p->locks[level] = BTRFS_READ_LOCK;
}
p->nodes[level] = b;