diff options
author | David Sterba <dsterba@suse.com> | 2019-10-08 14:28:47 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 14:46:54 +0300 |
commit | 67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9 (patch) | |
tree | 0dad12d2899aded886ec1ca0a5592a71365c7997 /fs/btrfs/extent-tree.c | |
parent | f7bddf1e27d18fbc7d3e3056ba449cfbe4e20b0a (diff) | |
download | linux-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.tar.xz |
btrfs: opencode extent_buffer_get
The helper is trivial and we can understand what the atomic_inc on
something named refs does.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 49cb26fa7c63..9e5845548b76 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -5436,7 +5436,7 @@ int btrfs_drop_subtree(struct btrfs_trans_handle *trans, btrfs_assert_tree_locked(parent); parent_level = btrfs_header_level(parent); - extent_buffer_get(parent); + atomic_inc(&parent->refs); path->nodes[parent_level] = parent; path->slots[parent_level] = btrfs_header_nritems(parent); |