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>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user