diff options
author | Josef Bacik | 2020-11-06 16:27:34 -0500 |
---|---|---|
committer | David Sterba | 2020-12-08 15:54:09 +0100 |
commit | fe596ca3d3b5b005d940a20ee30a6f1c13dd2d19 (patch) | |
tree | ed7f50e7b70a50e656da00739c225a3ccd8da115 /fs/btrfs/ctree.c | |
parent | 1bb96598410ccd52f4224e5584b8015c6d61b81f (diff) |
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.c | 2 |
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; |