/openbmc/linux/tools/testing/selftests/tpm2/ |
H A D | tpm2_tests.py | 16 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, blob, auth, handle) [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | relocation.c | 681 struct btrfs_key root_key; in create_reloc_root() local 689 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 690 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root() 691 root_key.offset = objectid; in create_reloc_root() 693 if (root->root_key.objectid == objectid) { in create_reloc_root() 737 if (root->root_key.objectid == objectid) { in create_reloc_root() 748 &root_key, root_item); in create_reloc_root() 754 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root() 816 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root() 824 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root() [all …]
|
H A D | export.c | 38 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() 247 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
|
H A D | block-rsv.c | 343 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 D | disk-io.c | 626 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.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree() 859 root->root_key.offset = 0; in btrfs_create_tree() 916 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree() 917 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree() [all …]
|
H A D | root-tree.c | 69 struct btrfs_key *root_key) in btrfs_find_root() argument 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()
|
H A D | extent-tree.c | 2309 if (data_ref->root != root->root_key.objectid || in check_delayed_ref() 2387 root->root_key.objectid || in check_committed_ref() 2476 key.offset, root->root_key.objectid, in __btrfs_mod_ref() 2490 root->root_key.objectid, for_reloc); in __btrfs_mod_ref() 4547 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_reserve_extent() 4798 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent() 4802 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, in btrfs_alloc_reserved_file_extent() 4919 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer() 5016 root->root_key.objectid, false); in btrfs_alloc_tree_block() 5096 generation <= root->root_key.offset) in reada_walk_down() [all …]
|
H A D | ctree.h | 203 struct btrfs_key root_key; member 352 return root->root_key.objectid; in btrfs_root_id() 717 return root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID; in btrfs_is_data_reloc_root()
|
H A D | root-tree.h | 25 struct btrfs_key *root_key);
|
H A D | transaction.c | 433 (unsigned long)root->root_key.objectid, in record_root_in_trans() 479 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root() 557 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root() 1189 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents() 1264 &root->root_key, in update_cowonly_root() 1452 (unsigned long)root->root_key.objectid, in commit_fs_roots() 1474 &root->root_key, in commit_fs_roots() 1583 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot() 1816 parent_root->root_key.objectid, in create_pending_snapshot() 2627 btrfs_debug(fs_info, "cleaner removing %llu", root->root_key.objectid); in btrfs_clean_one_deleted_snapshot()
|
H A D | ctree.c | 294 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list() 446 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow() 466 if ((owner == root->root_key.objectid || in update_ref_for_cow() 467 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow() 473 if (root->root_key.objectid == in update_ref_for_cow() 485 if (root->root_key.objectid == in update_ref_for_cow() 500 if (root->root_key.objectid == in update_ref_for_cow() 562 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in btrfs_force_cow_block() 566 root->root_key.objectid, &disk_key, level, in btrfs_force_cow_block() 579 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_force_cow_block() [all …]
|
H A D | qgroup.c | 1310 ret = btrfs_del_root(trans, "a_root->root_key); in btrfs_quota_disable() 3159 u64 ref_root = root->root_key.objectid; in qgroup_reserve() 3801 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data() 3917 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data() 3954 inode->root->root_key.objectid, in __btrfs_qgroup_release_data() 4049 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta() 4090 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans() 4096 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans() 4106 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta() 4117 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta() [all …]
|
H A D | file-item.c | 437 if (inode->root->root_key.objectid == in btrfs_lookup_bio_sums() 877 ASSERT(root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID || in btrfs_del_csums() 878 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums() 1178 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_csum_file_blocks() 1325 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
|
H A D | inode.c | 249 inode->root->root_key.objectid, btrfs_ino(inode), file_off, in print_data_reloc_error() 259 inode->root->root_key.objectid, in print_data_reloc_error() 326 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_print_data_csum_error() 331 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) { in btrfs_print_data_csum_error() 334 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 342 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error() 1210 root->root_key.objectid, btrfs_ino(inode), start, in submit_one_async_extent() 3221 btrfs_qgroup_free_refroot(fs_info, inode->root->root_key.objectid, in btrfs_finish_one_ordered() 3889 root->root_key.objectid, ret); in btrfs_read_locked_inode() 4253 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol() [all …]
|
H A D | locking.c | 99 btrfs_set_buffer_lockdep_class(root->root_key.objectid, in btrfs_maybe_reset_lockdep_class()
|
H A D | ioctl.c | 1505 root->root_key.objectid); in btrfs_ioctl_subvol_setflags() 1518 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags() 1914 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user() 2086 args->treeid = root->root_key.objectid; in btrfs_ioctl_ino_lookup() 2182 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info() 2297 objectid = root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref() 2956 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol() 2985 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol() 3894 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit() 4025 root->root_key.objectid); in _btrfs_ioctl_set_received_subvol() [all …]
|
H A D | super.c | 1335 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options() 1337 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options() 1405 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol() 2137 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs() 2139 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
|
H A D | send.c | 396 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error() 398 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error() 1320 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1322 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch() 1332 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort() 1334 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort() 1782 ino, root->root_key.objectid); in read_symlink() 2536 key.objectid = send_root->root_key.objectid; in send_subvol_begin() 2552 key.objectid != send_root->root_key.objectid) { in send_subvol_begin() 5322 sctx->send_root->root_key.objectid); in put_file_data() [all …]
|
H A D | btrfs_inode.h | 282 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
|
H A D | props.c | 269 root->root_key.objectid, ret); in inode_prop_iterator()
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | qgroup-tests.c | 492 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 D | free-space-tree-tests.c | 450 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 D | free-space-tests.c | 1039 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()
|
/openbmc/linux/include/trace/events/ |
H A D | btrfs.h | 229 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.objectid; [all …]
|
/openbmc/linux/lib/ |
H A D | test_objagg.c | 628 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()
|