diff options
author | David Sterba <dsterba@suse.com> | 2019-10-08 13:28:47 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-11-18 12:46:54 +0100 |
commit | 67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9 (patch) | |
tree | 0dad12d2899aded886ec1ca0a5592a71365c7997 /fs/btrfs/tree-log.c | |
parent | f7bddf1e27d18fbc7d3e3056ba449cfbe4e20b0a (diff) | |
download | linux-stable-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.tar.gz linux-stable-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.tar.bz2 linux-stable-67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9.zip |
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/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 30a17143448d..6f757361db53 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -2851,7 +2851,7 @@ static int walk_log_tree(struct btrfs_trans_handle *trans, level = btrfs_header_level(log->node); orig_level = level; path->nodes[level] = log->node; - extent_buffer_get(log->node); + atomic_inc(&log->node->refs); path->slots[level] = 0; while (1) { |