Home
last modified time | relevance | path

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

123

/linux-6.15/fs/btrfs/
H A Dexport.c36 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh()
87 inode = btrfs_iget(objectid, root); in btrfs_get_dentry()
104 u64 objectid, root_objectid; in btrfs_fh_to_parent() local
118 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
128 u64 objectid, root_objectid; in btrfs_fh_to_dentry() local
139 objectid = fid->objectid; in btrfs_fh_to_dentry()
164 key.objectid = btrfs_root_id(root); in btrfs_get_parent()
169 key.objectid = btrfs_ino(dir); in btrfs_get_parent()
195 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent()
205 key.objectid = found_key.offset; in btrfs_get_parent()
[all …]
H A Dfree-space-tree.c232 key.objectid = end - 1; in convert_free_space_to_bitmaps()
312 key.objectid = i; in convert_free_space_to_bitmaps()
367 key.objectid = end - 1; in convert_free_space_to_extents()
637 key.objectid = start; in modify_free_space_bitmap()
724 key.objectid = start; in remove_free_space_extent()
779 key.objectid = end; in remove_free_space_extent()
941 key.objectid = end; in add_free_space_extent()
1123 start = key.objectid; in populate_free_space_tree()
1227 key.objectid = 0; in clear_free_space_tree()
1519 ASSERT(key.objectid < end && key.objectid + key.offset <= end); in load_free_space_bitmaps()
[all …]
H A Dtree-checker.c101 key.objectid, key.offset, &vaf); in file_extent_err()
162 key.objectid, &vaf); in dir_item_err()
197 if (key->objectid == prev_key->objectid) in check_prev_ino()
203 prev_key->objectid, key->objectid); in check_prev_ino()
327 prev_key->objectid == key->objectid && in check_extent_data_item()
677 key.objectid, key.offset, &vaf); in block_group_err()
1046 key.objectid, &vaf); in dev_item_err()
1285 bytenr = key.objectid; in extent_err()
1694 u64 objectid; in check_extent_data_ref() local
1853 if (slot && prev_key->objectid == key->objectid && in check_dev_extent_item()
[all …]
H A Dtree-log.c612 u64 objectid) in read_one_inode() argument
991 if (location.objectid != objectid) in inode_in_dir()
1004 if (location.objectid == objectid) in inode_in_dir()
1541 key.objectid = ino; in count_inode_refs()
1794 if (found_key.objectid == log_key->objectid && in delete_conflicting_dir_entry()
1905 search_key.objectid = log_key.objectid; in replay_one_name()
1918 search_key.objectid = log_key.objectid; in replay_one_name()
4129 if (found_key.objectid != key.objectid) in drop_inode_items()
5336 if (di_key.objectid != key->objectid) { in btrfs_check_ref_name_override()
5880 if (min_key->objectid != max_key->objectid) in copy_inode_items_to_log()
[all …]
H A Duuid-tree.c21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key()
136 ret, key.objectid, key.offset, type); in btrfs_uuid_tree_add()
309 key.objectid = 0; in btrfs_uuid_tree_iterate()
348 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate()
414 key.objectid = 0; in btrfs_uuid_scan_kthread()
433 key.objectid != BTRFS_FS_TREE_OBJECTID) || in btrfs_uuid_scan_kthread()
434 key.objectid > BTRFS_LAST_FREE_OBJECTID) in btrfs_uuid_scan_kthread()
473 key.objectid); in btrfs_uuid_scan_kthread()
485 key.objectid); in btrfs_uuid_scan_kthread()
507 } else if (key.objectid < (u64)-1) { in btrfs_uuid_scan_kthread()
[all …]
H A Ddisk-io.h72 u64 objectid, bool check_ref);
74 u64 objectid, dev_t *anon_dev);
77 u64 objectid);
128 u64 objectid);
130 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid);
H A Dprint-tree.c40 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name()
47 if (root_map[i].id == key->objectid) in btrfs_root_name()
51 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name()
261 i, key.objectid, type, key.offset, in btrfs_print_leaf()
275 found_key.objectid, in btrfs_print_leaf()
353 key.objectid, key.offset); in btrfs_print_leaf()
354 switch (key.objectid) { in btrfs_print_leaf()
364 key.objectid, key.offset); in btrfs_print_leaf()
365 switch (key.objectid) { in btrfs_print_leaf()
414 i, key.objectid, key.type, key.offset, in btrfs_print_tree()
H A Ddir-item.c57 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
72 key.objectid = objectid; in btrfs_insert_xattr_item()
122 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
218 key.objectid = dir; in btrfs_lookup_dir_item()
245 key.objectid = dir; in btrfs_check_dir_item_collision()
307 key.objectid = dir; in btrfs_lookup_dir_index_item()
327 key.objectid = dirid; in btrfs_search_dir_index_item()
332 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item()
355 key.objectid = dir; in btrfs_lookup_xattr()
H A Droot-tree.c102 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
151 key->objectid, key->type, key->offset, btrfs_root_id(root)); in btrfs_update_root()
229 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots()
255 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots()
300 if (drop_key.objectid != 0 || drop_key.type != 0 || in btrfs_find_orphan_roots()
358 key.objectid = root_id; in btrfs_del_root_ref()
388 key.objectid = ref_id; in btrfs_del_root_ref()
430 key.objectid = root_id; in btrfs_add_root_ref()
452 key.objectid = ref_id; in btrfs_add_root_ref()
H A Draid-stripe-tree.c27 .objectid = oldkey->objectid + frontpad, in btrfs_partially_delete_raid_extent()
100 key.objectid = start; in btrfs_delete_raid_extent()
114 found_start = key.objectid; in btrfs_delete_raid_extent()
144 found_start = key.objectid; in btrfs_delete_raid_extent()
176 .objectid = end, in btrfs_delete_raid_extent()
326 stripe_key.objectid = bioc->logical; in btrfs_insert_one_raid_extent()
387 stripe_key.objectid = logical; in btrfs_get_raid_extent_offset()
413 found_logical = found_key.objectid; in btrfs_get_raid_extent_offset()
H A Dfile-item.c161 u64 objectid, u64 pos, u64 num_bytes) in btrfs_insert_hole_extent() argument
173 file_key.objectid = objectid; in btrfs_insert_hole_extent()
214 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum()
254 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument
261 file_key.objectid = objectid; in btrfs_lookup_file_extent()
483 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_list()
509 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_list()
639 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_bitmap()
891 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_del_csums()
942 pk.objectid != in btrfs_del_csums()
[all …]
H A Dinode-item.c92 key.objectid = inode_objectid; in btrfs_lookup_inode_extref()
122 key.objectid = inode_objectid; in btrfs_del_inode_extref()
193 key.objectid = inode_objectid; in btrfs_del_inode_ref()
267 key.objectid = inode_objectid; in btrfs_insert_inode_extref()
319 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()
H A Ddisk-io.c645 u64 objectid) in __setup_root() argument
653 root->root_key.objectid = objectid; in __setup_root()
868 root->root_key.objectid = objectid; in btrfs_create_tree()
903 key.objectid = objectid; in btrfs_create_tree()
1163 u64 objectid) in btrfs_get_global_root() argument
1166 .objectid = objectid, in btrfs_get_global_root()
1171 switch (objectid) { in btrfs_get_global_root()
1349 key.objectid = objectid; in btrfs_get_root_ref()
1468 key.objectid = objectid; in btrfs_get_fs_root_commit_root()
2124 .objectid = objectid, in load_global_roots_objectid()
[all …]
H A Drelocation.c591 root_key.offset = objectid; in create_reloc_root()
1043 next_key->objectid = (u64)-1; in replace_path()
1322 u64 objectid; in invalidate_extent_cache() local
1326 objectid = min_key->objectid; in invalidate_extent_cache()
1334 if (objectid > max_key->objectid) in invalidate_extent_cache()
1342 if (ino > max_key->objectid) { in invalidate_extent_cache()
1347 objectid = ino + 1; in invalidate_extent_cache()
3192 key.objectid = bytenr; in __add_tree_block()
3414 if (key.objectid >= last) { in find_next_extent()
3744 key.objectid = objectid; in delete_orphan_inode()
[all …]
H A Dexport.h15 u64 objectid; member
25 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
H A Dbtrfs_inode.h137 u64 objectid; member
362 static inline unsigned long btrfs_inode_hash(u64 objectid, in btrfs_inode_hash() argument
365 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
382 u64 ino = inode->objectid; in btrfs_ino()
401 key->objectid = btrfs_ino(inode); in btrfs_get_inode_key()
409 inode->objectid = ino; in btrfs_set_inode_number()
H A Dbackref.c86 e->inum = key->objectid; in check_extent_in_eb()
237 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare()
239 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare()
520 if (key.objectid != key_for_search->objectid || in add_all_parents()
1401 key.objectid = ctx->bytenr; in find_parent_nodes()
2055 key.objectid = inode_objectid; in btrfs_find_one_extref()
2209 key.objectid = logical; in extent_from_logical()
2254 logical, logical - found_key->objectid, found_key->objectid, in extent_from_logical()
2625 cur, found_key.objectid, in iterate_inode_refs()
2863 key.objectid = bytenr; in btrfs_backref_iter_start()
[all …]
H A Dorphan.c15 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item()
33 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
H A Dref-verify.c190 static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid) in lookup_root_entry() argument
198 if (entry->root_objectid < objectid) in lookup_root_entry()
200 else if (entry->root_objectid > objectid) in lookup_root_entry()
471 ret = add_tree_block(fs_info, offset, 0, key->objectid, in process_extent_item()
475 ret = add_tree_block(fs_info, 0, offset, key->objectid, in process_extent_item()
481 key->objectid, key->offset); in process_extent_item()
487 key->objectid, key->offset); in process_extent_item()
528 *bytenr = key.objectid; in process_leaf()
534 key.objectid, *tree_block_level); in process_leaf()
538 key.objectid, *tree_block_level); in process_leaf()
[all …]
H A Dioctl.c521 u64 objectid; in create_subvol() local
617 key.objectid = objectid; in create_subvol()
1531 sh.objectid = key->objectid; in copy_to_sk()
1590 key->objectid++; in copy_to_sk()
1773 key.objectid = dirid; in btrfs_search_path_in_tree()
2193 u64 objectid; in btrfs_ioctl_get_subvol_rootref() local
2209 key.objectid = objectid; in btrfs_ioctl_get_subvol_rootref()
2233 if (key.objectid != objectid || key.type != BTRFS_ROOT_REF_KEY) { in btrfs_ioctl_get_subvol_rootref()
2872 u64 objectid = 0; in btrfs_ioctl_default_subvol() local
2883 if (copy_from_user(&objectid, argp, sizeof(objectid))) { in btrfs_ioctl_default_subvol()
[all …]
H A Dextent-tree.c80 key.objectid = start; in btrfs_lookup_data_extent()
124 key.objectid = bytenr; in btrfs_lookup_extent_info()
437 key.objectid = bytenr; in lookup_extent_data_ref()
512 key.objectid = bytenr; in insert_extent_data_ref()
670 key.objectid = bytenr; in lookup_tree_block_ref()
694 key.objectid = bytenr; in insert_tree_block_ref()
784 key.objectid = bytenr; in lookup_inline_extent_backref()
825 key.objectid = bytenr; in lookup_inline_extent_backref()
2344 key.objectid = bytenr; in check_committed_ref()
4123 if (ins->objectid) { in find_free_extent_update_loop()
[all …]
H A Dsend.c2991 if (found_key.objectid != key.objectid || in did_create_dir()
3301 if (found_key.objectid != key.objectid || in can_rmdir()
4876 key.objectid = sctx->cmp_key->objectid; in process_all_refs()
4880 if (found_key.objectid != key.objectid || in process_all_refs()
5140 key.objectid = sctx->cmp_key->objectid; in process_all_new_xattrs()
5144 if (found_key.objectid != key.objectid || in process_all_new_xattrs()
6248 key.objectid = ekey->objectid; in is_extent_unchanged()
6265 if (found_key.objectid != key.objectid || in is_extent_unchanged()
6349 if (ret || found_key.objectid != key.objectid || in is_extent_unchanged()
6586 key.objectid = sctx->cmp_key->objectid; in process_all_extents()
[all …]
H A Dinode.c144 key.objectid = inum; in data_reloc_print_warning_inode()
3778 if (found_key.objectid != objectid) in acls_after_inode_item()
4399 u64 objectid; in btrfs_unlink_subvol() local
4434 WARN_ON(key.type != BTRFS_ROOT_ITEM_KEY || key.objectid != objectid); in btrfs_unlink_subvol()
4519 key.objectid); in may_destroy_subvol()
6038 if (found_key.objectid != key.objectid) in btrfs_real_readdir()
6308 u64 objectid; in btrfs_create_new_inode() local
6398 key[0].objectid = objectid; in btrfs_create_new_inode()
6411 key[1].objectid = objectid; in btrfs_create_new_inode()
6959 if (found_key.objectid != objectid || in btrfs_get_extent()
[all …]
/linux-6.15/fs/btrfs/tests/
H A Dextent-buffer-tests.c60 key.objectid = 0; in test_btrfs_split_item()
90 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
114 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
145 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()
191 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
H A Dqgroup-tests.c31 ins.objectid = bytenr; in insert_normal_tree_ref()
80 key.objectid = bytenr; in add_tree_ref()
103 key.objectid = bytenr; in add_tree_ref()
129 key.objectid = bytenr; in remove_extent_item()
162 key.objectid = bytenr; in remove_extent_ref()
185 key.objectid = bytenr; in remove_extent_ref()
492 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups()
526 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
542 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()

123