/kernel/linux/linux-5.10/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 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument 68 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry() 75 inode = btrfs_iget(sb, objectid, root); in btrfs_get_dentry() 92 u64 objectid, root_objectid; in btrfs_fh_to_parent() local 106 objectid = fid->parent_objectid; in btrfs_fh_to_parent() 109 return btrfs_get_dentry(sb, objectid, root_objectid, generation, 1); in btrfs_fh_to_parent() [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, 0); 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 | free-space-tree.c | 60 key.objectid = block_group->start; in add_new_free_space_info() 92 key.objectid = block_group->start; in search_free_space_info() 214 key.objectid = end - 1; in convert_free_space_to_bitmaps() 230 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps() 237 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps() 238 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps() 239 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps() 241 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps() 243 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps() 296 key.objectid = i; in convert_free_space_to_bitmaps() [all …]
|
D | disk-io.h | 69 u64 objectid, bool check_ref); 71 u64 objectid, dev_t anon_dev); 74 u64 objectid); 130 u64 objectid); 134 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); 135 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid); 141 void btrfs_set_buffer_lockdep_class(u64 objectid, 146 static inline void btrfs_set_buffer_lockdep_class(u64 objectid, in btrfs_set_buffer_lockdep_class() argument
|
D | btrfs_inode.h | 245 static inline unsigned long btrfs_inode_hash(u64 objectid, in btrfs_inode_hash() argument 248 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash() 266 u64 ino = inode->location.objectid; in btrfs_ino() 290 if (inode->location.objectid == BTRFS_FREE_INO_OBJECTID) in btrfs_is_free_space_inode() 379 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error() 382 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 390 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
|
D | tree-checker.c | 93 key.objectid, key.offset, &vaf); in file_extent_err() 152 key.objectid, &vaf); in dir_item_err() 187 if (key->objectid == prev_key->objectid) in check_prev_ino() 193 prev_key->objectid, key->objectid); in check_prev_ino() 315 prev_key->objectid == key->objectid && in check_extent_data_item() 341 if (key->objectid != BTRFS_EXTENT_CSUM_OBJECTID) { in check_csum_item() 344 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item() 391 if (key->type != 0 || key->objectid != 0 || key->offset != 0) in check_inode_key() 396 if ((key->objectid < BTRFS_FIRST_FREE_OBJECTID || in check_inode_key() 397 key->objectid > BTRFS_LAST_FREE_OBJECTID) && in check_inode_key() [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 | relocation.c | 729 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument 743 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 745 root_key.offset = objectid; in create_reloc_root() 747 if (root->root_key.objectid == objectid) { in create_reloc_root() 791 if (root->root_key.objectid == objectid) { in create_reloc_root() 870 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root() 878 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root() 941 static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) in find_next_inode() argument 956 if (objectid < btrfs_ino(entry)) in find_next_inode() 958 else if (objectid > btrfs_ino(entry)) in find_next_inode() [all …]
|
D | tree-log.c | 102 struct btrfs_path *path, u64 objectid); 359 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item() 551 u64 objectid) in read_one_inode() argument 555 inode = btrfs_iget(root->fs_info->sb, objectid, root); in read_one_inode() 613 inode = read_one_inode(root, key->objectid); in replay_one_extent() 679 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent() 699 if (ins.objectid > 0) { in replay_one_extent() 709 ret = btrfs_lookup_data_extent(fs_info, ins.objectid, in replay_one_extent() 716 ins.objectid, ins.offset, 0); in replay_one_extent() 718 root->root_key.objectid, in replay_one_extent() [all …]
|
D | print-tree.c | 33 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name() 40 if (root_map[i].id == key->objectid) in btrfs_root_name() 44 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name() 239 i, key.objectid, type, key.offset, in btrfs_print_leaf() 253 found_key.objectid, in btrfs_print_leaf() 332 key.objectid, key.offset); in btrfs_print_leaf() 333 switch (key.objectid) { in btrfs_print_leaf() 343 key.objectid, key.offset); in btrfs_print_leaf() 344 switch (key.objectid) { in btrfs_print_leaf() 389 i, key.objectid, key.type, key.offset, in btrfs_print_tree()
|
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 | extent-tree.c | 96 key.objectid = start; in btrfs_lookup_data_extent() 147 key.objectid = bytenr; in btrfs_lookup_extent_info() 163 if (key.objectid == bytenr && in btrfs_lookup_extent_info() 453 key.objectid = bytenr; in lookup_extent_data_ref() 492 if (key.objectid != bytenr || in lookup_extent_data_ref() 527 key.objectid = bytenr; in insert_extent_data_ref() 690 key.objectid = bytenr; in lookup_tree_block_ref() 713 key.objectid = bytenr; in insert_tree_block_ref() 805 key.objectid = bytenr; in lookup_inline_extent_backref() 842 if (key.objectid == bytenr && in lookup_inline_extent_backref() [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 | root-tree.c | 92 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 141 key->objectid, key->type, key->offset, in btrfs_update_root() 142 root->root_key.objectid); in btrfs_update_root() 221 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots() 247 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots() 334 key.objectid = root_id; in btrfs_del_root_ref() 365 key.objectid = ref_id; in btrfs_del_root_ref() 407 key.objectid = root_id; in btrfs_add_root_ref() 430 key.objectid = ref_id; in btrfs_add_root_ref()
|
D | file-item.c | 127 u64 objectid, u64 pos, in btrfs_insert_file_extent() argument 141 file_key.objectid = objectid; in btrfs_insert_file_extent() 187 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum() 227 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument 235 file_key.objectid = objectid; in btrfs_lookup_file_extent() 338 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums() 424 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range() 434 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range() 456 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_range() 578 inode->root->root_key.objectid, in btrfs_csum_one_bio() [all …]
|
D | disk-io.c | 188 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class() argument 197 if (ks->id == objectid) in btrfs_set_buffer_lockdep_class() 378 eb->start, parent_transid, first_key->objectid, in btrfs_verify_level_key() 380 found_key.objectid, found_key.type, in btrfs_verify_level_key() 1023 u64 objectid) in __setup_root() argument 1086 root->root_key.objectid = objectid; in __setup_root() 1100 u64 objectid, gfp_t flags) in btrfs_alloc_root() argument 1104 __setup_root(root, fs_info, objectid); in btrfs_alloc_root() 1129 u64 objectid) in btrfs_create_tree() argument 1144 root = btrfs_alloc_root(fs_info, objectid, GFP_KERNEL); in btrfs_create_tree() [all …]
|
D | inode.c | 188 key.objectid = btrfs_ino(BTRFS_I(inode)); in insert_inline_extent() 854 ins.objectid, /* block_start */ in submit_compressed_extents() 867 ins.objectid, in submit_compressed_extents() 878 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents() 891 ins.objectid, in submit_compressed_extents() 909 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents() 915 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_compressed_extents() 916 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 1); in submit_compressed_extents() 1048 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in cow_file_range() 1066 ins.objectid, /* block_start */ in cow_file_range() [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);
|
D | export.h | 11 u64 objectid; member 21 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
|
D | ioctl.c | 596 u64 objectid; in create_subvol() local 604 ret = btrfs_find_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 616 if (btrfs_qgroup_level(objectid)) { in create_subvol() 639 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol() 643 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in create_subvol() 684 key.objectid = objectid; in create_subvol() 707 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol() 754 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol() 762 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol() 1112 min_key.objectid = ino; in find_new_extents() [all …]
|
D | backref.c | 58 e->inum = key->objectid; in check_extent_in_eb() 192 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare() 194 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare() 471 if (key.objectid != key_for_search->objectid || in add_all_parents() 623 ref->key_for_search.objectid, ref->key_for_search.type, in resolve_indirect_ref() 903 key.objectid = ref->objectid; in add_delayed_refs() 1051 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_inline_refs() 1056 if (sc && sc->inum && key.objectid != sc->inum && in add_inline_refs() 1110 if (key.objectid != bytenr) in add_keyed_refs() 1152 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_keyed_refs() [all …]
|
D | send.c | 309 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error() 310 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error() 312 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error() 827 key.objectid = ino; in __get_inode_info() 1148 key.objectid = ino; in get_inode_path() 1160 if (found_key.objectid != ino || in get_inode_path() 1206 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1208 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1218 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort() 1220 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort() [all …]
|
D | qgroup.c | 364 key.objectid = 0; in btrfs_read_qgroup_config() 461 key.objectid = 0; in btrfs_read_qgroup_config() 475 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 481 ret = add_relation_rb(fs_info, found_key.objectid, in btrfs_read_qgroup_config() 486 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 595 key.objectid = src; in add_qgroup_relation_item() 619 key.objectid = src; in del_qgroup_relation_item() 655 key.objectid = 0; in add_qgroup_item() 717 key.objectid = 0; in del_qgroup_item() 763 key.objectid = 0; in update_qgroup_limit_item() [all …]
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
D | extent-buffer-tests.c | 59 key.objectid = 0; in test_btrfs_split_item() 86 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 111 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 143 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 167 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 191 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() 505 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups() 521 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
|