diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-11-07 00:27:33 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 17:54:09 +0300 |
commit | 1bb96598410ccd52f4224e5584b8015c6d61b81f (patch) | |
tree | 77adb6245a2a98202d4005567ddb110617655935 /fs/btrfs/ctree.c | |
parent | 4048daedb910f83f080c6bb03c78af794aebdff5 (diff) | |
download | linux-1bb96598410ccd52f4224e5584b8015c6d61b81f.tar.xz |
btrfs: merge back btrfs_read_lock_root_node helpers
We no longer have recursive locking and there's no need for separate
helpers that allowed the transition to rwsem with minimal code changes.
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 2a53887a6db7..8148007fa259 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -2533,7 +2533,7 @@ static struct extent_buffer *btrfs_search_slot_get_root(struct btrfs_root *root, * We don't know the level of the root node until we actually * have it read locked */ - b = __btrfs_read_lock_root_node(root, 0); + b = btrfs_read_lock_root_node(root); level = btrfs_header_level(b); if (level > write_lock_level) goto out; |