Home
last modified time | relevance | path

Searched refs:root_key (Results 1 - 25 of 66) sorted by relevance

123

/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/
H A 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, blo
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/tpm2/
H A 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)
55 blob = self.client.seal(self.root_key, data, auth, policy_dig)
63 result = self.client.unseal(self.root_key, blob, auth, handle)
75 blob = self.client.seal(self.root_key, data, auth, None)
77 result = self.client.unseal(self.root_key, blob,
102 blob = self.client.seal(self.root_key, data, auth, policy_dig)
116 result = self.client.unseal(self.root_key, blo
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Drelocation.c749 struct btrfs_key root_key; in create_reloc_root() local
757 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
758 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root()
759 root_key.offset = objectid; in create_reloc_root()
761 if (root->root_key.objectid == objectid) { in create_reloc_root()
805 if (root->root_key.objectid == objectid) { in create_reloc_root()
816 &root_key, root_item); in create_reloc_root()
822 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
884 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
892 reloc_root = create_reloc_root(trans, root, root->root_key in btrfs_init_reloc_root()
[all...]
H A Dexport.c38 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh()
46 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh()
164 key.objectid = root->root_key.objectid; in btrfs_get_parent()
240 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
H A Dblock-rsv.c343 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID || in btrfs_update_global_block_rsv()
344 root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID || in btrfs_update_global_block_rsv()
345 root->root_key.objectid == BTRFS_FREE_SPACE_TREE_OBJECTID) { in btrfs_update_global_block_rsv()
403 switch (root->root_key.objectid) { in btrfs_init_root_block_rsv()
465 root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID)) in get_block_rsv()
H A Ddisk-io.c626 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
630 root->root_key.objectid = objectid; in __setup_root()
733 return btrfs_comp_cpu_keys(&a->root_key, &b->root_key); in global_root_cmp()
741 return btrfs_comp_cpu_keys(key, &root->root_key); in global_root_key_cmp()
757 root->root_key.objectid, root->root_key.offset); in btrfs_global_root_insert()
857 root->root_key.objectid = objectid; in btrfs_create_tree()
858 root->root_key in btrfs_create_tree()
[all...]
H A Droot-tree.c59 * root_key: the root key of the tree we look for
69 struct btrfs_key *root_key) in btrfs_find_root()
103 if (root_key) in btrfs_find_root()
104 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
145 root->root_key.objectid); in btrfs_update_root()
67 btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, struct btrfs_path *path, struct btrfs_root_item *root_item, struct btrfs_key *root_key) btrfs_find_root() argument
H A Dextent-tree.c317 * (root_key.objectid, inode objectid, offset in file, 1)
2293 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2371 root->root_key.objectid || in check_committed_ref()
2460 key.offset, root->root_key.objectid, in __btrfs_mod_ref()
2474 root->root_key.objectid, for_reloc); in __btrfs_mod_ref()
4528 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_reserve_extent()
4779 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
4783 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, in btrfs_alloc_reserved_file_extent()
4900 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer()
4997 root->root_key in btrfs_alloc_tree_block()
[all...]
H A Droot-tree.h27 struct btrfs_key *root_key);
H A Dctree.h203 struct btrfs_key root_key; member
352 return root->root_key.objectid; in btrfs_root_id()
708 return root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID; in btrfs_is_data_reloc_root()
H A Dtransaction.c431 (unsigned long)root->root_key.objectid, in record_root_in_trans()
477 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
555 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1188 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1263 &root->root_key, in update_cowonly_root()
1451 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1472 &root->root_key, in commit_fs_roots()
1582 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1815 parent_root->root_key.objectid, in create_pending_snapshot()
2626 btrfs_debug(fs_info, "cleaner removing %llu", root->root_key in btrfs_clean_one_deleted_snapshot()
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dbtrfs_inode.h248 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
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()
H A Drelocation.c735 struct btrfs_key root_key; in create_reloc_root() local
743 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
744 root_key.type = BTRFS_ROOT_ITEM_KEY; 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()
802 &root_key, root_item); in create_reloc_root()
808 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); 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 in btrfs_init_reloc_root()
[all...]
H A 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()
228 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
H A Dextent-tree.c325 * (root_key.objectid, inode objectid, offset in file, 1)
2277 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2355 root->root_key.objectid || in check_committed_ref()
2386 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
2448 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2463 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
3331 root->root_key.objectid); in btrfs_free_tree_block()
3333 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
3342 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
4526 BUG_ON(root->root_key in btrfs_alloc_reserved_file_extent()
[all...]
H A Dinode-map.c184 root->root_key.objectid); in start_caching()
413 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache()
414 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache()
415 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
H A Droot-tree.c56 * root_key: the root key of the tree we look for
66 struct btrfs_key *root_key) in btrfs_find_root()
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()
64 btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, struct btrfs_path *path, struct btrfs_root_item *root_item, struct btrfs_key *root_key) btrfs_find_root() argument
H A Dtransaction.c166 if (is_fstree(root->root_key.objectid)) in switch_commit_roots()
429 (unsigned long)root->root_key.objectid, in record_root_in_trans()
475 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
551 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1130 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1205 &root->root_key, in update_cowonly_root()
1344 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1365 &root->root_key, in commit_fs_roots()
1462 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1680 parent_root->root_key in create_pending_snapshot()
[all...]
H A Ddisk-io.c133 * by btrfs_root->root_key.objectid. This ensures that all special purpose
1083 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
1086 root->root_key.objectid = objectid; in __setup_root()
1149 root->root_key.objectid = objectid; in btrfs_create_tree()
1150 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree()
1151 root->root_key.offset = 0; in btrfs_create_tree()
1211 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1212 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree()
1213 root->root_key in alloc_log_tree()
[all...]
H A Dqgroup.c1278 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
3076 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3745 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data()
3861 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3896 inode->root->root_key.objectid, in __btrfs_qgroup_release_data()
3989 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta()
4029 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
4035 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
4045 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
4056 btrfs_qgroup_free_refroot(fs_info, root->root_key in __btrfs_qgroup_free_meta()
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dbtrfs.h229 BTRFS_I(inode)->root->root_key.objectid;
306 __entry->root_objectid = root->root_key.objectid;
395 __entry->root_obj = bi->root->root_key.objectid;
446 __entry->root_obj = bi->root->root_key.objectid;
546 __entry->root_objectid = inode->root->root_key.objectid;
683 __entry->root_objectid = inode->root->root_key.objectid;
725 BTRFS_I(inode)->root->root_key.objectid;
769 __entry->root_objectid = inode->root->root_key.objectid;
800 BTRFS_I(inode)->root->root_key.objectid;
1083 __entry->root_objectid = fs_info->chunk_root->root_key
[all...]
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dqgroup-tests.c492 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups()
493 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_test_qgroups()
494 root->root_key.offset = 0; 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()
H A Dfree-space-tree-tests.c450 root->root_key.objectid = BTRFS_FREE_SPACE_TREE_OBJECTID; in run_test()
451 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in run_test()
452 root->root_key.offset = 0; in run_test()
H A Dfree-space-tests.c1039 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_free_space_cache()
1040 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_test_free_space_cache()
1041 root->root_key.offset = 0; in btrfs_test_free_space_cache()
/kernel/linux/linux-5.10/include/trace/events/
H A Dbtrfs.h195 __entry->root_objectid = root->root_key.objectid;
227 BTRFS_I(inode)->root->root_key.objectid;
304 __entry->root_objectid = root->root_key.objectid;
393 __entry->root_obj = bi->root->root_key.objectid;
444 __entry->root_obj = bi->root->root_key.objectid;
543 __entry->root_objectid = inode->root->root_key.objectid;
629 BTRFS_I(inode)->root->root_key.objectid;
675 BTRFS_I(page->mapping->host)->root->root_key.objectid;
708 BTRFS_I(inode)->root->root_key.objectid;
991 __entry->root_objectid = fs_info->chunk_root->root_key
[all...]

Completed in 45 milliseconds

123