Lines Matching +full:iref +full:- +full:level

1 // SPDX-License-Identifier: GPL-2.0
8 #include "disk-io.h"
9 #include "print-tree.h"
11 #include "tree-checker.h"
13 #include "raid-stripe-tree.h"
40 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name()
42 "TREE_RELOC offset=%llu", key->offset); in btrfs_root_name()
47 if (root_map[i].id == key->objectid) in btrfs_root_name()
51 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name()
89 ASSERT(btrfs_fs_incompat(eb->fs_info, SIMPLE_QUOTA)); in print_extent_owner_ref()
96 struct btrfs_extent_inline_ref *iref; in print_extent_item() local
109 btrfs_err(eb->fs_info, in print_extent_item()
127 pr_info("\t\ttree block key (%llu %u %llu) level %d\n", in print_extent_item()
131 iref = (struct btrfs_extent_inline_ref *)(info + 1); in print_extent_item()
133 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item()
136 ptr = (unsigned long)iref; in print_extent_item()
139 iref = (struct btrfs_extent_inline_ref *)ptr; in print_extent_item()
140 type = btrfs_extent_inline_ref_type(eb, iref); in print_extent_item()
141 offset = btrfs_extent_inline_ref_offset(eb, iref); in print_extent_item()
153 if (!IS_ALIGNED(offset, eb->fs_info->sectorsize)) in print_extent_item()
156 offset, eb->fs_info->sectorsize); in print_extent_item()
159 dref = (struct btrfs_extent_data_ref *)(&iref->offset); in print_extent_item()
163 sref = (struct btrfs_shared_data_ref *)(iref + 1); in print_extent_item()
170 if (!IS_ALIGNED(offset, eb->fs_info->sectorsize)) in print_extent_item()
173 offset, eb->fs_info->sectorsize); in print_extent_item()
176 oref = (struct btrfs_extent_owner_ref *)(&iref->offset); in print_extent_item()
181 eb->start, type); in print_extent_item()
202 item_size -= sizeof(u64); in print_uuid_item()
214 i, btrfs_raid_stride_devid(eb, &stripe->strides[i]), in print_raid_stripe_key()
215 btrfs_raid_stride_physical(eb, &stripe->strides[i])); in print_raid_stripe_key()
225 btrfs_info(eb->fs_info, "refs %u lock_owner %u current %u", in print_eb_refs_lock()
226 atomic_read(&eb->refs), eb->lock_owner, current->pid); in print_eb_refs_lock()
249 fs_info = l->fs_info; in btrfs_print_leaf()
394 int level; in btrfs_print_tree() local
398 fs_info = c->fs_info; in btrfs_print_tree()
400 level = btrfs_header_level(c); in btrfs_print_tree()
401 if (level == 0) { in btrfs_print_tree()
406 "node %llu level %d gen %llu total ptrs %d free spc %u owner %llu", in btrfs_print_tree()
407 btrfs_header_bytenr(c), level, btrfs_header_generation(c), in btrfs_print_tree()
408 nr, (u32)BTRFS_NODEPTRS_PER_BLOCK(fs_info) - nr, in btrfs_print_tree()
422 .level = level - 1, in btrfs_print_tree()
439 level != 1) in btrfs_print_tree()
442 level - 1) in btrfs_print_tree()