Home
last modified time | relevance | path

Searched refs:objectid (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.1.9/fs/btrfs/
Dexport.c35 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 …]
Dfree-space-tree.c23 .objectid = BTRFS_FREE_SPACE_TREE_OBJECTID, in btrfs_free_space_root()
74 key.objectid = block_group->start; in add_new_free_space_info()
106 key.objectid = block_group->start; in search_free_space_info()
228 key.objectid = end - 1; in convert_free_space_to_bitmaps()
244 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps()
251 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
252 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
253 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
255 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
257 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
[all …]
Dtree-checker.c94 key.objectid, key.offset, &vaf); in file_extent_err()
154 key.objectid, &vaf); in dir_item_err()
189 if (key->objectid == prev_key->objectid) in check_prev_ino()
195 prev_key->objectid, key->objectid); in check_prev_ino()
319 prev_key->objectid == key->objectid && in check_extent_data_item()
345 if (unlikely(key->objectid != BTRFS_EXTENT_CSUM_OBJECTID)) { in check_csum_item()
348 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item()
395 if (unlikely(key->objectid != 0 || key->type != 0 || in check_inode_key()
401 if (unlikely((key->objectid < BTRFS_FIRST_FREE_OBJECTID || in check_inode_key()
402 key->objectid > BTRFS_LAST_FREE_OBJECTID) && in check_inode_key()
[all …]
Dbtrfs_inode.h261 static inline unsigned long btrfs_inode_hash(u64 objectid, in btrfs_inode_hash() argument
264 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
281 u64 ino = inode->location.objectid; in btrfs_ino()
421 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error()
424 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
432 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
Drelocation.c733 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument
747 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
749 root_key.offset = objectid; in create_reloc_root()
751 if (root->root_key.objectid == objectid) { in create_reloc_root()
795 if (root->root_key.objectid == objectid) { in create_reloc_root()
874 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
882 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
952 static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) in find_next_inode() argument
967 if (objectid < btrfs_ino(entry)) in find_next_inode()
969 else if (objectid > btrfs_ino(entry)) in find_next_inode()
[all …]
Dprint-tree.c34 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name()
41 if (root_map[i].id == key->objectid) in btrfs_root_name()
45 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name()
230 i, key.objectid, type, key.offset, in btrfs_print_leaf()
244 found_key.objectid, in btrfs_print_leaf()
323 key.objectid, key.offset); in btrfs_print_leaf()
324 switch (key.objectid) { in btrfs_print_leaf()
334 key.objectid, key.offset); in btrfs_print_leaf()
335 switch (key.objectid) { in btrfs_print_leaf()
380 i, key.objectid, key.type, key.offset, in btrfs_print_tree()
Dtree-log.c103 struct btrfs_path *path, u64 objectid);
369 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in do_overwrite_item()
603 u64 objectid) in read_one_inode() argument
607 inode = btrfs_iget(root->fs_info->sb, objectid, root); in read_one_inode()
666 inode = read_one_inode(root, key->objectid); in replay_one_extent()
735 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent()
755 if (ins.objectid > 0) { in replay_one_extent()
765 ret = btrfs_lookup_data_extent(fs_info, ins.objectid, in replay_one_extent()
772 ins.objectid, ins.offset, 0); in replay_one_extent()
774 root->root_key.objectid, in replay_one_extent()
[all …]
Droot-tree.c90 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
139 key->objectid, key->type, key->offset, in btrfs_update_root()
140 root->root_key.objectid); in btrfs_update_root()
219 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots()
245 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots()
290 if (drop_key.objectid != 0 || drop_key.type != 0 || in btrfs_find_orphan_roots()
346 key.objectid = root_id; in btrfs_del_root_ref()
376 key.objectid = ref_id; in btrfs_del_root_ref()
418 key.objectid = root_id; in btrfs_add_root_ref()
441 key.objectid = ref_id; in btrfs_add_root_ref()
Ddir-item.c55 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
70 key.objectid = objectid; in btrfs_insert_xattr_item()
121 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
215 key.objectid = dir; in btrfs_lookup_dir_item()
241 key.objectid = dir; in btrfs_check_dir_item_collision()
312 key.objectid = dir; in btrfs_lookup_dir_index_item()
332 key.objectid = dirid; in btrfs_search_dir_index_item()
337 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item()
361 key.objectid = dir; in btrfs_lookup_xattr()
Ddisk-io.c241 eb->start, parent_transid, first_key->objectid, in btrfs_verify_level_key()
243 found_key.objectid, found_key.type, in btrfs_verify_level_key()
975 u64 objectid) in __setup_root() argument
983 root->root_key.objectid = objectid; in __setup_root()
1053 u64 objectid, gfp_t flags) in btrfs_alloc_root() argument
1057 __setup_root(root, fs_info, objectid); in btrfs_alloc_root()
1158 .objectid = BTRFS_CSUM_TREE_OBJECTID, in btrfs_csum_root()
1169 .objectid = BTRFS_EXTENT_TREE_OBJECTID, in btrfs_extent_root()
1178 u64 objectid) in btrfs_create_tree() argument
1193 root = btrfs_alloc_root(fs_info, objectid, GFP_KERNEL); in btrfs_create_tree()
[all …]
Dtree-defrag.c44 if (root->defrag_progress.objectid == 0) { in btrfs_defrag_leaves()
50 root->defrag_max.objectid = 0; in btrfs_defrag_leaves()
120 if (root->defrag_max.objectid > root->defrag_progress.objectid) in btrfs_defrag_leaves()
Ddisk-io.h66 u64 objectid, bool check_ref);
68 u64 objectid, dev_t anon_dev);
71 u64 objectid);
138 u64 objectid);
142 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid);
Dfile-item.c145 u64 objectid, u64 pos, u64 num_bytes) in btrfs_insert_hole_extent() argument
156 file_key.objectid = objectid; in btrfs_insert_hole_extent()
201 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum()
241 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument
248 file_key.objectid = objectid; in btrfs_lookup_file_extent()
490 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
544 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range()
554 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range()
575 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_range()
691 inode->root->root_key.objectid, in btrfs_csum_one_bio()
[all …]
Dinode-item.c85 key.objectid = inode_objectid; in btrfs_lookup_inode_extref()
115 key.objectid = inode_objectid; in btrfs_del_inode_extref()
187 key.objectid = inode_objectid; in btrfs_del_inode_ref()
261 key.objectid = inode_objectid; in btrfs_insert_inode_extref()
316 key.objectid = inode_objectid; in btrfs_insert_inode_ref()
383 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument
387 key.objectid = objectid; in btrfs_insert_empty_inode()
413 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
495 key.objectid = control->ino; in btrfs_truncate_inode_items()
532 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items()
[all …]
Dextent-tree.c99 key.objectid = start; in btrfs_lookup_data_extent()
151 key.objectid = bytenr; in btrfs_lookup_extent_info()
168 if (key.objectid == bytenr && in btrfs_lookup_extent_info()
458 key.objectid = bytenr; in lookup_extent_data_ref()
497 if (key.objectid != bytenr || in lookup_extent_data_ref()
532 key.objectid = bytenr; in insert_extent_data_ref()
695 key.objectid = bytenr; in lookup_tree_block_ref()
719 key.objectid = bytenr; in insert_tree_block_ref()
810 key.objectid = bytenr; in lookup_inline_extent_backref()
848 if (key.objectid == bytenr && in lookup_inline_extent_backref()
[all …]
Dexport.h11 u64 objectid; member
21 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
Dioctl.c592 u64 objectid; in create_subvol() local
598 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
606 if (btrfs_qgroup_level(objectid)) { in create_subvol()
640 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol()
644 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in create_subvol()
685 key.objectid = objectid; in create_subvol()
701 btrfs_free_tree_block(trans, objectid, leaf, 0, 1); in create_subvol()
709 new_root = btrfs_get_new_fs_root(fs_info, objectid, anon_dev); in create_subvol()
727 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol()
1074 key.objectid = ino; in defrag_get_extent()
[all …]
Dbackref.c59 e->inum = key->objectid; in check_extent_in_eb()
193 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare()
195 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare()
472 if (key.objectid != key_for_search->objectid || in add_all_parents()
624 ref->key_for_search.objectid, ref->key_for_search.type, in resolve_indirect_ref()
906 key.objectid = ref->objectid; in add_delayed_refs()
1054 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_inline_refs()
1059 if (sc && sc->inum && key.objectid != sc->inum && in add_inline_refs()
1113 if (key.objectid != bytenr) in add_keyed_refs()
1155 key.objectid = btrfs_extent_data_ref_objectid(leaf, in add_keyed_refs()
[all …]
Dsend.c339 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error()
340 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
342 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
876 key.objectid = ino; in get_inode_info()
1193 key.objectid = ino; in get_inode_path()
1205 if (found_key.objectid != ino || in get_inode_path()
1248 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1250 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1260 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1262 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort()
[all …]
Dinode.c309 key.objectid = btrfs_ino(inode); in insert_inline_extent()
1006 ins.objectid, /* block_start */ in submit_one_async_extent()
1021 ins.objectid, /* disk_bytenr */ in submit_one_async_extent()
1030 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_one_async_extent()
1038 ins.objectid, /* disk_bytenr */ in submit_one_async_extent()
1053 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent()
1058 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_one_async_extent()
1059 btrfs_free_reserved_extent(fs_info, ins.objectid, ins.offset, 1); in submit_one_async_extent()
1099 inode->root->root_key.objectid, in submit_compressed_extents()
1287 ins.objectid, /* block_start */ in cow_file_range()
[all …]
Dqgroup.c383 key.objectid = 0; in btrfs_read_qgroup_config()
480 key.objectid = 0; in btrfs_read_qgroup_config()
494 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config()
500 ret = add_relation_rb(fs_info, found_key.objectid, in btrfs_read_qgroup_config()
505 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config()
614 key.objectid = src; in add_qgroup_relation_item()
638 key.objectid = src; in del_qgroup_relation_item()
674 key.objectid = 0; in add_qgroup_item()
736 key.objectid = 0; in del_qgroup_item()
782 key.objectid = 0; in update_qgroup_limit_item()
[all …]
Dorphan.c16 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item()
37 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
Dctree.c182 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list()
319 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
331 if ((owner == root->root_key.objectid || in update_ref_for_cow()
332 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
338 if (root->root_key.objectid == in update_ref_for_cow()
350 if (root->root_key.objectid == in update_ref_for_cow()
368 if (root->root_key.objectid == in update_ref_for_cow()
430 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
434 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block()
447 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
[all …]
/linux-6.1.9/fs/btrfs/tests/
Dextent-buffer-tests.c59 key.objectid = 0; in test_btrfs_split_item()
85 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
109 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
140 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
163 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
186 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
Dqgroup-tests.c29 ins.objectid = bytenr; in insert_normal_tree_ref()
78 key.objectid = bytenr; in add_tree_ref()
101 key.objectid = bytenr; in add_tree_ref()
127 key.objectid = bytenr; in remove_extent_item()
160 key.objectid = bytenr; in remove_extent_ref()
183 key.objectid = bytenr; in remove_extent_ref()
460 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups()
494 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
510 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()

123