/Linux-v4.19/fs/btrfs/ |
D | export.c | 35 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 36 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh() 42 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh() 44 parent_root_id = BTRFS_I(parent)->root->objectid; in btrfs_encode_fh() 60 static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument 71 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry() 74 key.objectid = root_objectid; in btrfs_get_dentry() 86 key.objectid = objectid; in btrfs_get_dentry() 113 u64 objectid, root_objectid; in btrfs_fh_to_parent() local 127 objectid = fid->parent_objectid; in btrfs_fh_to_parent() [all …]
|
D | free-space-tree.c | 56 key.objectid = block_group->key.objectid; in add_new_free_space_info() 87 key.objectid = block_group->key.objectid; in search_free_space_info() 96 block_group->key.objectid); in search_free_space_info() 205 start = block_group->key.objectid; in convert_free_space_to_bitmaps() 206 end = block_group->key.objectid + block_group->key.offset; in convert_free_space_to_bitmaps() 208 key.objectid = end - 1; in convert_free_space_to_bitmaps() 224 ASSERT(found_key.objectid == block_group->key.objectid); in convert_free_space_to_bitmaps() 231 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 232 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 233 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() [all …]
|
D | inode-map.c | 39 key.objectid = BTRFS_FIRST_FREE_OBJECTID; in caching_kthread() 89 if (key.objectid >= root->highest_objectid) in caching_kthread() 92 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread() 94 key.objectid - last - 1); in caching_kthread() 98 last = key.objectid; in caching_kthread() 129 u64 objectid; in start_caching() local 158 ret = btrfs_find_free_objectid(root, &objectid); in start_caching() 159 if (!ret && objectid <= BTRFS_LAST_FREE_OBJECTID) { in start_caching() 160 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching() 161 BTRFS_LAST_FREE_OBJECTID - objectid + 1); in start_caching() [all …]
|
D | inode-map.h | 8 void btrfs_return_ino(struct btrfs_root *root, u64 objectid); 9 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid); 13 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); 14 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid);
|
D | btrfs_inode.h | 206 static inline unsigned long btrfs_inode_hash(u64 objectid, in btrfs_inode_hash() argument 209 u64 h = objectid ^ (root->objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash() 227 u64 ino = inode->location.objectid; in btrfs_ino() 251 if (inode->location.objectid == BTRFS_FREE_INO_OBJECTID) in btrfs_is_free_space_inode() 342 if (root->objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error() 345 root->objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 350 root->objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
|
D | dir-item.c | 57 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument 72 key.objectid = objectid; in btrfs_insert_xattr_item() 123 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item() 190 key.objectid = dir; in btrfs_lookup_dir_item() 220 key.objectid = dir; in btrfs_check_dir_item_collision() 275 u64 objectid, const char *name, int name_len, in btrfs_lookup_dir_index_item() argument 283 key.objectid = dir; in btrfs_lookup_dir_index_item() 285 key.offset = objectid; in btrfs_lookup_dir_index_item() 306 key.objectid = dirid; in btrfs_search_dir_index_item() 330 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item() [all …]
|
D | root-tree.c | 92 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 143 key->objectid, key->type, key->offset); in btrfs_update_root() 221 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots() 248 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots() 252 root_key.objectid = key.offset; in btrfs_find_orphan_roots() 262 root = btrfs_lookup_fs_root(fs_info, root_key.objectid); in btrfs_find_orphan_roots() 288 root_key.objectid); in btrfs_find_orphan_roots() 362 key.objectid = root_id; in btrfs_del_root_ref() 389 key.objectid = ref_id; in btrfs_del_root_ref() 431 key.objectid = root_id; in btrfs_add_root_ref() [all …]
|
D | tree-log.c | 96 struct btrfs_path *path, u64 objectid); 341 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item() 539 u64 objectid) in read_one_inode() argument 544 key.objectid = objectid; in read_one_inode() 605 inode = read_one_inode(root, key->objectid); in replay_one_extent() 671 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent() 691 if (ins.objectid > 0) { in replay_one_extent() 699 ret = btrfs_lookup_data_extent(fs_info, ins.objectid, in replay_one_extent() 703 ins.objectid, ins.offset, in replay_one_extent() 704 0, root->root_key.objectid, in replay_one_extent() [all …]
|
D | relocation.c | 579 key.objectid = root_objectid; in read_fs_root() 694 key.objectid = cur->bytenr; in build_backref_tree() 749 if (key.objectid != cur->bytenr) { in build_backref_tree() 791 if (key.objectid == key.offset) { in build_backref_tree() 887 cur->bytenr, level - 1, root->objectid, in build_backref_tree() 888 node_key->objectid, node_key->type, in build_backref_tree() 1339 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument 1351 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 1353 root_key.offset = objectid; in create_reloc_root() 1355 if (root->root_key.objectid == objectid) { in create_reloc_root() [all …]
|
D | tree-defrag.c | 50 if (root->defrag_progress.objectid == 0) { in btrfs_defrag_leaves() 57 root->defrag_max.objectid = 0; in btrfs_defrag_leaves() 127 if (root->defrag_max.objectid > root->defrag_progress.objectid) in btrfs_defrag_leaves()
|
D | tree-checker.c | 89 key.objectid, key.offset, &vaf); in file_extent_err() 198 if (key->objectid != BTRFS_EXTENT_CSUM_OBJECTID) { in check_csum_item() 201 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item() 243 key.objectid, &vaf); in dir_item_err() 377 key.objectid, key.offset, &vaf); in block_group_err() 514 key.objectid = owner; in check_leaf() 564 prev_key.objectid, prev_key.type, in check_leaf() 565 prev_key.offset, key.objectid, key.type, in check_leaf() 623 prev_key.objectid = key.objectid; in check_leaf() 682 key.objectid, key.type, key.offset, in btrfs_check_node() [all …]
|
D | extent-tree.c | 141 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache() 143 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache() 155 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache() 156 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache() 181 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search() 182 start = cache->key.objectid; in block_group_cache_tree_search() 185 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search() 201 if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) in block_group_cache_tree_search() 202 info->first_logical_byte = ret->key.objectid; in block_group_cache_tree_search() 225 start = cache->key.objectid; in free_excluded_extents() [all …]
|
D | inode-item.c | 92 key.objectid = inode_objectid; in btrfs_lookup_inode_extref() 124 key.objectid = inode_objectid; in btrfs_del_inode_extref() 198 key.objectid = inode_objectid; in btrfs_del_inode_ref() 273 key.objectid = inode_objectid; in btrfs_insert_inode_extref() 330 key.objectid = inode_objectid; in btrfs_insert_inode_ref() 398 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument 402 key.objectid = objectid; in btrfs_insert_empty_inode() 428 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
|
D | inode.c | 189 key.objectid = btrfs_ino(BTRFS_I(inode)); in insert_inline_extent() 805 ins.objectid, /* block_start */ in submit_compressed_extents() 818 ins.objectid, in submit_compressed_extents() 830 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents() 846 ins.objectid, in submit_compressed_extents() 865 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents() 871 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents() 872 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 1); in submit_compressed_extents() 1011 ins.objectid, /* block_start */ in cow_file_range() 1023 ret = btrfs_add_ordered_extent(inode, start, ins.objectid, in cow_file_range() [all …]
|
D | file-item.c | 30 u64 objectid, u64 pos, in btrfs_insert_file_extent() argument 44 file_key.objectid = objectid; in btrfs_insert_file_extent() 90 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum() 130 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument 138 file_key.objectid = objectid; in btrfs_lookup_file_extent() 236 if (BTRFS_I(inode)->root->root_key.objectid == in __btrfs_lookup_bio_sums() 331 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range() 341 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range() 363 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_range() 597 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_del_csums() [all …]
|
D | backref.c | 57 e->inum = key->objectid; in check_extent_in_eb() 190 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare() 192 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare() 452 if (key.objectid != key_for_search->objectid || in add_all_parents() 515 root_key.objectid = ref->root_id; in resolve_indirect_ref() 560 ref->key_for_search.objectid, ref->key_for_search.type, in resolve_indirect_ref() 821 key.objectid = ref->objectid; in add_delayed_refs() 829 if (sc && sc->inum && ref->objectid != sc->inum) { in add_delayed_refs() 961 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_inline_refs() 966 if (sc && sc->inum && key.objectid != sc->inum) { in add_inline_refs() [all …]
|
D | qgroup.c | 360 key.objectid = 0; in btrfs_read_qgroup_config() 453 key.objectid = 0; in btrfs_read_qgroup_config() 467 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 473 ret = add_relation_rb(fs_info, found_key.objectid, in btrfs_read_qgroup_config() 478 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 545 key.objectid = src; in add_qgroup_relation_item() 569 key.objectid = src; in del_qgroup_relation_item() 605 key.objectid = 0; in add_qgroup_item() 667 key.objectid = 0; in del_qgroup_item() 713 key.objectid = 0; in update_qgroup_limit_item() [all …]
|
D | send.c | 291 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error() 292 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error() 294 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error() 809 key.objectid = ino; in __get_inode_info() 1130 key.objectid = ino; in get_inode_path() 1142 if (found_key.objectid != ino || in get_inode_path() 1189 if (root < cr->root->objectid) in __clone_root_cmp_bsearch() 1191 if (root > cr->root->objectid) in __clone_root_cmp_bsearch() 1201 if (cr1->root->objectid < cr2->root->objectid) in __clone_root_cmp_sort() 1203 if (cr1->root->objectid > cr2->root->objectid) in __clone_root_cmp_sort() [all …]
|
D | print-tree.c | 199 i, key.objectid, type, key.offset, in btrfs_print_leaf() 213 found_key.objectid, in btrfs_print_leaf() 292 key.objectid, key.offset); in btrfs_print_leaf() 293 switch (key.objectid) { in btrfs_print_leaf() 303 key.objectid, key.offset); in btrfs_print_leaf() 304 switch (key.objectid) { in btrfs_print_leaf() 349 i, key.objectid, key.type, key.offset, in btrfs_print_tree()
|
D | ioctl.c | 564 u64 objectid; in create_subvol() local 573 ret = btrfs_find_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 581 if (btrfs_qgroup_level(objectid)) { in create_subvol() 604 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol() 608 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); in create_subvol() 651 key.objectid = objectid; in create_subvol() 701 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol() 706 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol() 1046 min_key.objectid = ino; in find_new_extents() 1055 if (min_key.objectid != ino) in find_new_extents() [all …]
|
D | ref-verify.c | 187 static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid) in lookup_root_entry() argument 195 if (entry->root_objectid < objectid) in lookup_root_entry() 197 else if (entry->root_objectid > objectid) in lookup_root_entry() 476 ret = add_tree_block(fs_info, offset, 0, key->objectid, in process_extent_item() 480 ret = add_tree_block(fs_info, 0, offset, key->objectid, in process_extent_item() 486 key->objectid, key->offset); in process_extent_item() 492 key->objectid, key->offset); in process_extent_item() 524 *bytenr = key.objectid; in process_leaf() 530 key.objectid, tree_block_level); in process_leaf() 534 key.objectid, tree_block_level); in process_leaf() [all …]
|
/Linux-v4.19/fs/btrfs/tests/ |
D | free-space-tree-tests.c | 50 end = cache->key.objectid + cache->key.offset; in __check_free_space_extents() 56 offset = key.objectid; in __check_free_space_extents() 57 while (offset < key.objectid + key.offset) { in __check_free_space_extents() 91 key.objectid != extents[i].start || in __check_free_space_extents() 157 {cache->key.objectid, cache->key.offset}, in test_empty_block_group() 174 cache->key.objectid, in test_remove_all() 192 {cache->key.objectid + alignment, in test_remove_beginning() 198 cache->key.objectid, alignment); in test_remove_beginning() 216 {cache->key.objectid, cache->key.offset - alignment}, in test_remove_end() 221 cache->key.objectid + in test_remove_end() [all …]
|
D | extent-buffer-tests.c | 59 key.objectid = 0; in test_btrfs_split_item() 87 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 112 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 144 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 168 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 192 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
|
D | qgroup-tests.c | 29 ins.objectid = bytenr; in insert_normal_tree_ref() 79 key.objectid = bytenr; in add_tree_ref() 103 key.objectid = bytenr; in add_tree_ref() 129 key.objectid = bytenr; in remove_extent_item() 163 key.objectid = bytenr; in remove_extent_ref() 187 key.objectid = bytenr; in remove_extent_ref() 503 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups() 518 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
|
/Linux-v4.19/include/trace/events/ |
D | btrfs.h | 121 __entry->root_objectid = root->root_key.objectid; 153 BTRFS_I(inode)->root->root_key.objectid; 230 __entry->root_objectid = root->root_key.objectid; 319 __entry->root_obj = bi->root->objectid; 370 __entry->root_obj = bi->root->objectid; 471 BTRFS_I(inode)->root->root_key.objectid; 557 BTRFS_I(inode)->root->root_key.objectid; 603 BTRFS_I(page->mapping->host)->root->root_key.objectid; 636 BTRFS_I(inode)->root->root_key.objectid; 680 __entry->offset = block_group->key.objectid; [all …]
|