diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index fdf95bd07f90..e511f48eb48e 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -85,7 +85,7 @@ int btrfs_inc_ref(struct ctree_root *root, struct tree_buffer *buf) | |||
85 | return 0; | 85 | return 0; |
86 | 86 | ||
87 | for (i = 0; i < btrfs_header_nritems(&buf->node.header); i++) { | 87 | for (i = 0; i < btrfs_header_nritems(&buf->node.header); i++) { |
88 | blocknr = buf->node.blockptrs[i]; | 88 | blocknr = btrfs_node_blockptr(&buf->node, i); |
89 | inc_block_ref(root, blocknr); | 89 | inc_block_ref(root, blocknr); |
90 | } | 90 | } |
91 | return 0; | 91 | return 0; |
@@ -437,7 +437,7 @@ int walk_down_tree(struct ctree_root *root, struct ctree_path *path, int *level) | |||
437 | if (path->slots[*level] >= | 437 | if (path->slots[*level] >= |
438 | btrfs_header_nritems(&cur->node.header)) | 438 | btrfs_header_nritems(&cur->node.header)) |
439 | break; | 439 | break; |
440 | blocknr = cur->node.blockptrs[path->slots[*level]]; | 440 | blocknr = btrfs_node_blockptr(&cur->node, path->slots[*level]); |
441 | ret = lookup_block_ref(root, blocknr, &refs); | 441 | ret = lookup_block_ref(root, blocknr, &refs); |
442 | if (refs != 1 || *level == 1) { | 442 | if (refs != 1 || *level == 1) { |
443 | path->slots[*level]++; | 443 | path->slots[*level]++; |