Home
last modified time | relevance | path

Searched refs:root_key (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.15/tools/testing/selftests/tpm2/
Dtpm2_tests.py16 self.root_key = self.client.create_root_key()
19 self.client.flush_context(self.root_key)
26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
45 blob = self.client.seal(self.root_key, data, auth, policy_dig)
53 result = self.client.unseal(self.root_key, blob, auth, handle)
65 blob = self.client.seal(self.root_key, data, auth, None)
67 result = self.client.unseal(self.root_key, blob,
89 blob = self.client.seal(self.root_key, data, auth, policy_dig)
103 result = self.client.unseal(self.root_key, blob, auth, handle)
[all …]
/Linux-v5.15/fs/btrfs/
Dbtrfs_inode.h249 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
387 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error()
390 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
398 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
Dexport.c36 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh()
44 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh()
151 key.objectid = root->root_key.objectid; in btrfs_get_parent()
227 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
Drelocation.c737 struct btrfs_key root_key; in create_reloc_root() local
745 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
746 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root()
747 root_key.offset = objectid; in create_reloc_root()
749 if (root->root_key.objectid == objectid) { in create_reloc_root()
793 if (root->root_key.objectid == objectid) { in create_reloc_root()
804 &root_key, root_item); in create_reloc_root()
810 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
872 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
880 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
[all …]
Droot-tree.c66 struct btrfs_key *root_key) in btrfs_find_root() argument
100 if (root_key) in btrfs_find_root()
101 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
142 root->root_key.objectid); in btrfs_update_root()
Dextent-tree.c2270 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2348 root->root_key.objectid || in check_committed_ref()
2379 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
2441 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2456 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
3292 root->root_key.objectid); in btrfs_free_tree_block()
3294 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
3304 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
4131 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in find_free_extent()
4410 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_reserve_extent()
[all …]
Dtransaction.c437 (unsigned long)root->root_key.objectid, in record_root_in_trans()
483 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
560 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1138 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1213 &root->root_key, in update_cowonly_root()
1353 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1374 &root->root_key, in commit_fs_roots()
1490 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1711 parent_root->root_key.objectid, in create_pending_snapshot()
2452 btrfs_debug(fs_info, "cleaner removing %llu", root->root_key.objectid); in btrfs_clean_one_deleted_snapshot()
Ddisk-io.c1200 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
1203 root->root_key.objectid = objectid; in __setup_root()
1266 root->root_key.objectid = objectid; in btrfs_create_tree()
1267 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree()
1268 root->root_key.offset = 0; in btrfs_create_tree()
1328 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1329 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree()
1330 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1405 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1440 &root->root_item, &root->root_key); in read_tree_root_path()
[all …]
Dctree.c164 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list()
301 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
313 if ((owner == root->root_key.objectid || in update_ref_for_cow()
314 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
320 if (root->root_key.objectid == in update_ref_for_cow()
332 if (root->root_key.objectid == in update_ref_for_cow()
350 if (root->root_key.objectid == in update_ref_for_cow()
412 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
416 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block()
429 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
[all …]
Dqgroup.c1211 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
2980 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3615 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data()
3730 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3765 inode->root->root_key.objectid, in __btrfs_qgroup_release_data()
3858 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta()
3898 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
3904 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
3914 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
3925 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta()
[all …]
Dfile-item.c472 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
675 inode->root->root_key.objectid, in btrfs_csum_one_bio()
806 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums()
1106 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_csum_file_blocks()
1254 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
Dinode.c1154 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in cow_file_range()
1190 if (root->root_key.objectid == in cow_file_range()
1507 const bool is_reloc_ino = (inode->root->root_key.objectid == in fallback_to_cow()
1870 if (root->root_key.objectid == in run_delalloc_nocow()
2210 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_delalloc_extent()
2535 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_data_bio()
3307 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_verify_data_csum()
3870 root->root_key.objectid, ret); in btrfs_read_locked_inode()
4008 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode()
4226 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol()
[all …]
Dioctl.c679 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol()
2037 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
2050 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2449 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2618 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2716 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2832 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
3458 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3487 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
4379 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit()
[all …]
Dsuper.c1530 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1532 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1600 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
2338 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs()
2340 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
Dsend.c310 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
312 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
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()
1492 ino, root->root_key.objectid); in read_symlink()
2342 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2358 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
5051 offset, len, clone_root->root->root_key.objectid, in send_clone()
[all …]
Dfile.c162 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
737 update_refs = (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in btrfs_drop_extents()
870 root->root_key.objectid, in btrfs_drop_extents()
956 root->root_key.objectid, in btrfs_drop_extents()
1234 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written()
1260 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset); in btrfs_mark_extent_written()
2622 btrfs_init_data_ref(&ref, root->root_key.objectid, in btrfs_insert_replace_extent()
Dprops.c239 root->root_key.objectid, ret); in inode_prop_iterator()
Ddelayed-inode.c1392 name_len, name, delayed_node->root->root_key.objectid, in btrfs_insert_delayed_dir_index()
1468 index, node->root->root_key.objectid, in btrfs_delete_delayed_dir_index()
Dbackref.c1534 .root_objectid = root->root_key.objectid,
2096 fs_root->root_key.objectid);
2745 cur->bytenr, level - 1, root->root_key.objectid,
Dreflink.c660 root_dst->root_key.objectid, in btrfs_extent_same()
Dtree-mod-log.c824 old = read_tree_block(fs_info, logical, root->root_key.objectid, in btrfs_get_old_root()
Dtree-log.c400 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
763 root->root_key.objectid, in replay_one_extent()
774 root->root_key.objectid, in replay_one_extent()
2987 &log->root_key, root_item); in update_log_root()
2990 &log->root_key, root_item); in update_log_root()
/Linux-v5.15/include/trace/events/
Dbtrfs.h196 __entry->root_objectid = root->root_key.objectid;
228 BTRFS_I(inode)->root->root_key.objectid;
305 __entry->root_objectid = root->root_key.objectid;
394 __entry->root_obj = bi->root->root_key.objectid;
445 __entry->root_obj = bi->root->root_key.objectid;
545 __entry->root_objectid = inode->root->root_key.objectid;
631 BTRFS_I(inode)->root->root_key.objectid;
675 __entry->root_objectid = inode->root->root_key.objectid;
706 BTRFS_I(inode)->root->root_key.objectid;
989 __entry->root_objectid = fs_info->chunk_root->root_key.objectid;
[all …]
/Linux-v5.15/fs/btrfs/tests/
Dqgroup-tests.c489 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
505 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
/Linux-v5.15/lib/
Dtest_objagg.c628 const struct tokey *root_key; in obj_to_key_id() local
632 root_key = objagg_obj_root_priv(objagg_obj); in obj_to_key_id()
633 key_id = root_key->id; in obj_to_key_id()

12