/Linux-v5.4/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->root_key.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->root_key.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 | 57 key.objectid = block_group->key.objectid; in add_new_free_space_info() 89 key.objectid = block_group->key.objectid; in search_free_space_info() 98 block_group->key.objectid); in search_free_space_info() 208 start = block_group->key.objectid; in convert_free_space_to_bitmaps() 209 end = block_group->key.objectid + block_group->key.offset; in convert_free_space_to_bitmaps() 211 key.objectid = end - 1; in convert_free_space_to_bitmaps() 227 ASSERT(found_key.objectid == block_group->key.objectid); in convert_free_space_to_bitmaps() 234 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 235 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 236 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() [all …]
|
D | inode-map.c | 55 key.objectid = BTRFS_FIRST_FREE_OBJECTID; in caching_kthread() 105 if (key.objectid >= root->highest_objectid) in caching_kthread() 108 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread() 110 key.objectid - last - 1); in caching_kthread() 114 last = key.objectid; in caching_kthread() 145 u64 objectid; in start_caching() local 175 ret = btrfs_find_free_objectid(root, &objectid); in start_caching() 176 if (!ret && objectid <= BTRFS_LAST_FREE_OBJECTID) { in start_caching() 177 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching() 178 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 | 205 static inline unsigned long btrfs_inode_hash(u64 objectid, in btrfs_inode_hash() argument 208 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash() 226 u64 ino = inode->location.objectid; in btrfs_ino() 250 if (inode->location.objectid == BTRFS_FREE_INO_OBJECTID) in btrfs_is_free_space_inode() 352 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error() 355 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 363 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
|
D | block-group.c | 165 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache() 167 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache() 179 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache() 180 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache() 204 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search() 205 start = cache->key.objectid; in block_group_cache_tree_search() 208 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search() 224 if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) in block_group_cache_tree_search() 225 info->first_logical_byte = ret->key.objectid; in block_group_cache_tree_search() 260 const u64 next_bytenr = cache->key.objectid + cache->key.offset; in btrfs_next_block_group() [all …]
|
D | tree-checker.c | 92 key.objectid, key.offset, &vaf); in file_extent_err() 226 prev_key->objectid == key->objectid && in check_extent_data_item() 252 if (key->objectid != BTRFS_EXTENT_CSUM_OBJECTID) { in check_csum_item() 255 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item() 297 key.objectid, &vaf); in dir_item_err() 431 key.objectid, key.offset, &vaf); in block_group_err() 682 key.objectid, &vaf); in dev_item_err() 691 if (key->objectid != BTRFS_DEV_ITEMS_OBJECTID) { in check_dev_item() 694 key->objectid, BTRFS_DEV_ITEMS_OBJECTID); in check_dev_item() 738 if ((key->objectid < BTRFS_FIRST_FREE_OBJECTID || in check_inode_item() [all …]
|
D | root-tree.c | 94 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 143 key->objectid, key->type, key->offset, in btrfs_update_root() 144 root->root_key.objectid); in btrfs_update_root() 224 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots() 251 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots() 255 root_key.objectid = key.offset; in btrfs_find_orphan_roots() 265 root = btrfs_lookup_fs_root(fs_info, root_key.objectid); in btrfs_find_orphan_roots() 293 root_key.objectid); in btrfs_find_orphan_roots() 369 key.objectid = root_id; in btrfs_del_root_ref() 396 key.objectid = ref_id; in btrfs_del_root_ref() [all …]
|
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 | tree-log.c | 102 struct btrfs_path *path, u64 objectid); 357 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item() 554 u64 objectid) in read_one_inode() argument 559 key.objectid = objectid; in read_one_inode() 620 inode = read_one_inode(root, key->objectid); in replay_one_extent() 686 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent() 706 if (ins.objectid > 0) { in replay_one_extent() 716 ret = btrfs_lookup_data_extent(fs_info, ins.objectid, in replay_one_extent() 721 ins.objectid, ins.offset, 0); in replay_one_extent() 723 root->root_key.objectid, in replay_one_extent() [all …]
|
D | relocation.c | 583 key.objectid = root_objectid; in read_fs_root() 698 key.objectid = cur->bytenr; in build_backref_tree() 753 if (key.objectid != cur->bytenr) { in build_backref_tree() 800 if (key.objectid == key.offset) { in build_backref_tree() 898 root->root_key.objectid, in build_backref_tree() 899 node_key->objectid, node_key->type, in build_backref_tree() 1352 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument 1364 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 1366 root_key.offset = objectid; in create_reloc_root() 1368 if (root->root_key.objectid == objectid) { in create_reloc_root() [all …]
|
D | extent-tree.c | 78 start = cache->key.objectid; in btrfs_free_excluded_extents() 133 key.objectid = start; in btrfs_lookup_data_extent() 184 key.objectid = bytenr; in btrfs_lookup_extent_info() 200 if (key.objectid == bytenr && in btrfs_lookup_extent_info() 491 key.objectid = bytenr; in lookup_extent_data_ref() 530 if (key.objectid != bytenr || in lookup_extent_data_ref() 565 key.objectid = bytenr; in insert_extent_data_ref() 728 key.objectid = bytenr; in lookup_tree_block_ref() 751 key.objectid = bytenr; in insert_tree_block_ref() 843 key.objectid = bytenr; in lookup_inline_extent_backref() [all …]
|
D | inode-item.c | 84 key.objectid = inode_objectid; in btrfs_lookup_inode_extref() 114 key.objectid = inode_objectid; in btrfs_del_inode_extref() 188 key.objectid = inode_objectid; in btrfs_del_inode_ref() 265 key.objectid = inode_objectid; in btrfs_insert_inode_extref() 322 key.objectid = inode_objectid; in btrfs_insert_inode_ref() 390 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument 394 key.objectid = objectid; in btrfs_insert_empty_inode() 420 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
|
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 | inode.c | 194 key.objectid = btrfs_ino(BTRFS_I(inode)); in insert_inline_extent() 839 ins.objectid, /* block_start */ in submit_compressed_extents() 852 ins.objectid, in submit_compressed_extents() 864 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents() 878 ins.objectid, in submit_compressed_extents() 896 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents() 902 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents() 903 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 1); in submit_compressed_extents() 1038 ins.objectid, /* block_start */ in cow_file_range() 1050 ret = btrfs_add_ordered_extent(inode, start, ins.objectid, in cow_file_range() [all …]
|
D | file-item.c | 36 u64 objectid, u64 pos, in btrfs_insert_file_extent() argument 50 file_key.objectid = objectid; in btrfs_insert_file_extent() 96 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum() 136 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument 144 file_key.objectid = objectid; in btrfs_lookup_file_extent() 235 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() 610 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() 454 if (key.objectid != key_for_search->objectid || in add_all_parents() 517 root_key.objectid = ref->root_id; in resolve_indirect_ref() 562 ref->key_for_search.objectid, ref->key_for_search.type, in resolve_indirect_ref() 825 key.objectid = ref->objectid; in add_delayed_refs() 833 if (sc && sc->inum && ref->objectid != sc->inum) { in add_delayed_refs() 965 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_inline_refs() 970 if (sc && sc->inum && key.objectid != sc->inum) { in add_inline_refs() [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 | 574 u64 objectid; in create_subvol() local 583 ret = btrfs_find_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 591 if (btrfs_qgroup_level(objectid)) { in create_subvol() 614 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol() 618 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); in create_subvol() 661 key.objectid = objectid; in create_subvol() 710 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol() 715 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol() 1061 min_key.objectid = ino; in find_new_extents() 1070 if (min_key.objectid != ino) in find_new_extents() [all …]
|
D | send.c | 306 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error() 307 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error() 309 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error() 824 key.objectid = ino; in __get_inode_info() 1145 key.objectid = ino; in get_inode_path() 1157 if (found_key.objectid != ino || in get_inode_path() 1203 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1205 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1215 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort() 1217 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort() [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 …]
|
/Linux-v5.4/fs/btrfs/tests/ |
D | free-space-tree-tests.c | 51 end = cache->key.objectid + cache->key.offset; in __check_free_space_extents() 57 offset = key.objectid; in __check_free_space_extents() 58 while (offset < key.objectid + key.offset) { in __check_free_space_extents() 92 key.objectid != extents[i].start || in __check_free_space_extents() 158 {cache->key.objectid, cache->key.offset}, in test_empty_block_group() 175 cache->key.objectid, in test_remove_all() 193 {cache->key.objectid + alignment, in test_remove_beginning() 199 cache->key.objectid, alignment); in test_remove_beginning() 217 {cache->key.objectid, cache->key.offset - alignment}, in test_remove_end() 222 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-v5.4/include/trace/events/ |
D | btrfs.h | 157 __entry->root_objectid = root->root_key.objectid; 189 BTRFS_I(inode)->root->root_key.objectid; 266 __entry->root_objectid = root->root_key.objectid; 355 __entry->root_obj = bi->root->root_key.objectid; 406 __entry->root_obj = bi->root->root_key.objectid; 507 BTRFS_I(inode)->root->root_key.objectid; 593 BTRFS_I(inode)->root->root_key.objectid; 639 BTRFS_I(page->mapping->host)->root->root_key.objectid; 672 BTRFS_I(inode)->root->root_key.objectid; 716 __entry->offset = block_group->key.objectid; [all …]
|