Lines Matching +full:1 +full:eb
55 static void print_chunk(const struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() argument
57 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk()
60 btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk), in print_chunk()
61 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
64 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
65 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
68 static void print_dev_item(const struct extent_buffer *eb, in print_dev_item() argument
72 btrfs_device_id(eb, dev_item), in print_dev_item()
73 btrfs_device_total_bytes(eb, dev_item), in print_dev_item()
74 btrfs_device_bytes_used(eb, dev_item)); in print_dev_item()
76 static void print_extent_data_ref(const struct extent_buffer *eb, in print_extent_data_ref() argument
80 btrfs_extent_data_ref_root(eb, ref), in print_extent_data_ref()
81 btrfs_extent_data_ref_objectid(eb, ref), in print_extent_data_ref()
82 btrfs_extent_data_ref_offset(eb, ref), in print_extent_data_ref()
83 btrfs_extent_data_ref_count(eb, ref)); in print_extent_data_ref()
86 static void print_extent_owner_ref(const struct extent_buffer *eb, in print_extent_owner_ref() argument
89 ASSERT(btrfs_fs_incompat(eb->fs_info, SIMPLE_QUOTA)); in print_extent_owner_ref()
90 pr_cont("extent data owner root %llu\n", btrfs_extent_owner_ref_root_id(eb, ref)); in print_extent_owner_ref()
93 static void print_extent_item(const struct extent_buffer *eb, int slot, int type) in print_extent_item() argument
103 u32 item_size = btrfs_item_size(eb, slot); in print_extent_item()
109 btrfs_err(eb->fs_info, in print_extent_item()
115 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item()
116 flags = btrfs_extent_flags(eb, ei); in print_extent_item()
119 btrfs_extent_refs(eb, ei), btrfs_extent_generation(eb, ei), in print_extent_item()
125 info = (struct btrfs_tree_block_info *)(ei + 1); in print_extent_item()
126 btrfs_tree_block_key(eb, info, &key); in print_extent_item()
130 btrfs_tree_block_level(eb, info)); 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()
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()
160 print_extent_data_ref(eb, dref); in print_extent_item()
163 sref = (struct btrfs_shared_data_ref *)(iref + 1); in print_extent_item()
165 offset, btrfs_shared_data_ref_count(eb, sref)); 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()
177 print_extent_owner_ref(eb, oref); in print_extent_item()
181 eb->start, type); in print_extent_item()
207 static void print_raid_stripe_key(const struct extent_buffer *eb, u32 item_size, in print_raid_stripe_key() argument
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()
222 static void print_eb_refs_lock(const struct extent_buffer *eb) in print_eb_refs_lock() argument
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()
422 .level = level - 1, in btrfs_print_tree()
439 level != 1) in btrfs_print_tree()
442 level - 1) in btrfs_print_tree()