/openbmc/linux/fs/btrfs/ |
H A D | misc.h | 64 u64 bytenr; member 67 static inline struct rb_node *rb_simple_search(struct rb_root *root, u64 bytenr) in rb_simple_search() argument 75 if (bytenr < entry->bytenr) in rb_simple_search() 77 else if (bytenr > entry->bytenr) in rb_simple_search() 95 u64 bytenr) in rb_simple_search_first() argument 103 if (bytenr < entry->bytenr) { in rb_simple_search_first() 104 if (!ret || entry->bytenr < ret_entry->bytenr) { in rb_simple_search_first() 110 } else if (bytenr > entry->bytenr) { in rb_simple_search_first() 120 static inline struct rb_node *rb_simple_insert(struct rb_root *root, u64 bytenr, in rb_simple_insert() argument 131 if (bytenr < entry->bytenr) in rb_simple_insert() [all …]
|
H A D | ref-verify.c | 67 u64 bytenr; member 88 if (entry->bytenr > be->bytenr) in insert_block_entry() 90 else if (entry->bytenr < be->bytenr) in insert_block_entry() 109 if (entry->bytenr < bytenr) in lookup_block_entry() 111 else if (entry->bytenr > bytenr) in lookup_block_entry() 277 be->bytenr = bytenr; in add_block_entry() 672 u64 bytenr = generic_ref->bytenr; in btrfs_ref_tree_mod() local 938 (entry->bytenr < start && be->bytenr > start) || in btrfs_free_ref_tree_range() 939 (entry->bytenr < start && entry->bytenr > be->bytenr)) in btrfs_free_ref_tree_range() 956 if (be->bytenr < start && be->bytenr + be->len > start) { in btrfs_free_ref_tree_range() [all …]
|
H A D | delayed-ref.c | 299 bytenr = ins->bytenr; in htree_insert() 305 if (bytenr < entry->bytenr) { in htree_insert() 307 } else if (bytenr > entry->bytenr) { in htree_insert() 384 if (bytenr < entry->bytenr) in find_ref_head() 386 else if (bytenr > entry->bytenr) in find_ref_head() 392 if (bytenr > entry->bytenr) { in find_ref_head() 758 head_ref->bytenr = bytenr; in init_delayed_ref_head() 777 qrecord->bytenr = bytenr; in init_delayed_ref_head() 878 ref->bytenr = bytenr; in init_delayed_ref_common() 907 u64 bytenr = generic_ref->bytenr; in btrfs_add_delayed_tree_ref() local [all …]
|
H A D | backref.h | 46 u64 bytenr; member 123 int (*check_extent_item)(u64 bytenr, const struct btrfs_extent_item *ei, 145 u64 bytenr; member 191 u64 bytenr; member 239 int btrfs_is_data_extent_shared(struct btrfs_inode *inode, u64 bytenr, 263 u64 bytenr; member 320 iter->bytenr = 0; in btrfs_backref_iter_release() 341 u64 bytenr; member 449 struct btrfs_backref_cache *cache, u64 bytenr, int level); 536 u64 bytenr, int errno) in btrfs_backref_panic() argument [all …]
|
H A D | file-item.c | 207 u64 bytenr, int cow) in btrfs_lookup_csum() argument 220 file_key.offset = bytenr; in btrfs_lookup_csum() 915 if (csum_end <= bytenr) in btrfs_del_csums() 949 if (key.offset == bytenr) in btrfs_del_csums() 983 key.offset = bytenr; in btrfs_del_csums() 999 if (key.offset < bytenr) in btrfs_del_csums() 1053 u64 bytenr; in btrfs_csum_file_blocks() local 1068 file_key.offset = bytenr; in btrfs_csum_file_blocks() 1275 u64 bytenr; in btrfs_extent_item_to_extent_map() local 1292 if (bytenr == 0) { in btrfs_extent_item_to_extent_map() [all …]
|
H A D | extent-tree.c | 136 key.objectid = bytenr; in btrfs_lookup_extent_info() 1373 u64 cur = bytenr; in btrfs_discard_extent() 1500 u64 bytenr = node->bytenr; in __btrfs_inc_extent_ref() local 2419 u64 bytenr; in __btrfs_mod_ref() local 2463 if (bytenr == 0) in __btrfs_mod_ref() 2531 u64 bytenr = 0; in first_logical_byte() local 2544 return bytenr; in first_logical_byte() 2979 u64 bytenr = node->bytenr; in __btrfs_free_extent() local 5054 u64 bytenr; in reada_walk_down() local 5261 u64 bytenr; in do_walk_down() local [all …]
|
H A D | backref.c | 454 target.parent = bytenr; in is_shared_data_backref() 1279 if (entry->bytenr != bytenr) in lookup_backref_shared_cache() 1353 entry->bytenr = bytenr; in store_backref_shared_cache() 1880 if (ctx->prev_extents_cache[i].bytenr == bytenr) in btrfs_is_data_extent_shared() 1927 walk_ctx.bytenr = bytenr; in btrfs_is_data_extent_shared() 1981 bytenr = node->val; in btrfs_is_data_extent_shared() 2011 bytenr = ctx->path_cache_entries[level].bytenr; in btrfs_is_data_extent_shared() 2420 ctx->bytenr); in iterate_extent_inodes() 2853 key.objectid = bytenr; in btrfs_backref_iter_start() 2856 iter->bytenr = bytenr; in btrfs_backref_iter_start() [all …]
|
H A D | delayed-ref.h | 27 u64 bytenr; member 68 u64 bytenr; member 240 u64 bytenr; member 281 int action, u64 bytenr, u64 len, u64 parent) in btrfs_init_generic_ref() argument 284 generic_ref->bytenr = bytenr; in btrfs_init_generic_ref() 382 u64 bytenr, u64 num_bytes, 390 u64 bytenr);
|
H A D | free-space-cache.h | 117 int __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr, 120 u64 bytenr, u64 size); 122 u64 bytenr, u64 size); 124 u64 bytenr, u64 size); 126 u64 bytenr, u64 size);
|
H A D | disk-io.h | 34 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 38 u64 bytenr, u64 owner_root, 75 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr); 76 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr);
|
H A D | extent-tree.h | 100 struct btrfs_fs_info *fs_info, u64 bytenr, 102 int btrfs_pin_extent(struct btrfs_trans_handle *trans, u64 bytenr, u64 num, 105 u64 bytenr, u64 num_bytes); 108 u64 objectid, u64 offset, u64 bytenr, bool strict,
|
H A D | relocation.c | 94 u64 bytenr; member 110 u64 bytenr; member 588 node->bytenr); in __add_reloc_root() 1006 u64 bytenr; in replace_file_extents() local 1039 if (bytenr == 0) in replace_file_extents() 2118 node->bytenr); in select_reloc_root() 2161 node->bytenr, next->bytenr); in select_reloc_root() 2346 u64 bytenr; in do_relocation() local 2414 if (bytenr != node->bytenr) { in do_relocation() 2417 bytenr, node->bytenr, slot, in do_relocation() [all …]
|
H A D | check-integrity.c | 320 u64 bytenr, 1494 block_ctx_out->start = bytenr; in btrfsic_map_block() 1715 u64 bytenr = 0; in btrfsic_process_written_block() local 1770 block->logical_bytenr = bytenr; in btrfsic_process_written_block() 1841 block_ctx.start = bytenr; in btrfsic_process_written_block() 1932 u64 bytenr; in btrfsic_process_written_block() local 1947 bytenr = 0; /* unknown */ in btrfsic_process_written_block() 1963 block_ctx.start = bytenr; in btrfsic_process_written_block() 1976 block->logical_bytenr = bytenr; in btrfsic_process_written_block() 2587 u64 bytenr, in btrfsic_cmp_log_and_dev_bytenr() argument [all …]
|
H A D | block-group.h | 281 struct btrfs_fs_info *info, u64 bytenr); 283 struct btrfs_fs_info *info, u64 bytenr); 292 u64 bytenr); 325 u64 bytenr, u64 num_bytes, bool alloc);
|
H A D | file-item.h | 40 struct btrfs_root *root, u64 bytenr, u64 len); 48 u64 bytenr, int mod);
|
H A D | qgroup.h | 113 u64 bytenr; member 332 int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr, 356 int btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans, u64 bytenr,
|
H A D | disk-io.c | 580 u64 bytenr, u64 owner_root, in btrfs_find_create_tree_block() argument 794 if (bytenr) in btrfs_global_root_id() 2570 u64 gen, bytenr; in load_important_roots() local 2573 bytenr = btrfs_super_root(sb); in load_important_roots() 3672 u64 bytenr, bytenr_orig; in btrfs_read_dev_one_super() local 3695 bytenr >> PAGE_SHIFT, in btrfs_read_dev_one_super() 3765 u64 bytenr, bytenr_orig; in write_dev_supers() local 3803 bytenr); in write_dev_supers() 3826 offset_in_page(bytenr)); in write_dev_supers() 3858 u64 bytenr; in wait_dev_supers() local [all …]
|
H A D | relocation.h | 21 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | qgroup-tests.c | 16 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() argument 31 ins.objectid = bytenr; in insert_normal_tree_ref() 80 key.objectid = bytenr; in add_tree_ref() 103 key.objectid = bytenr; in add_tree_ref() 119 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() argument 129 key.objectid = bytenr; in remove_extent_item() 150 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() argument 162 key.objectid = bytenr; in remove_extent_ref() 185 key.objectid = bytenr; in remove_extent_ref() 224 ctx.bytenr = nodesize; in test_no_shared_qgroup() [all …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | root.c | 50 root->bytenr = root_item->bytenr; in btrfs_find_root()
|
H A D | conv-funcs.h | 144 DEFINE_CONV(btrfs_root_item, inode, generation, root_dirid, bytenr, byte_limit, 159 DEFINE_CONV(btrfs_header, bytenr, flags, generation, owner, nritems) 164 DEFINE_CONV(btrfs_super_block, bytenr, flags, magic, generation, root,
|
H A D | ctree.h | 79 __u64 bytenr; /* which block this node is supposed to live in */ member 145 __u64 bytenr; /* this block number */ member 272 u64 bytenr; member
|
H A D | btrfs.c | 94 btrfs_info.tree_root.bytenr = btrfs_info.sb.root; in btrfs_probe() 96 btrfs_info.chunk_root.bytenr = btrfs_info.sb.chunk_root; in btrfs_probe()
|
H A D | super.c | 212 } else if (sb->bytenr != superblock_offsets[i]) { in btrfs_read_superblock() 215 __func__, sb->bytenr, superblock_offsets[i], i); in btrfs_read_superblock()
|
/openbmc/linux/include/trace/events/ |
H A D | btrfs.h | 893 __entry->bytenr = ref->bytenr; 906 __entry->bytenr, 957 __entry->bytenr = ref->bytenr; 971 __entry->bytenr, 1018 __entry->bytenr = head_ref->bytenr; 1025 __entry->bytenr, 1751 __entry->bytenr = rec->bytenr, 1814 __entry->bytenr = bytenr; 1823 __entry->bytenr, 1994 __entry->bytenr, [all …]
|