Home
last modified time | relevance | path

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

12

/linux-6.1.9/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)
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 …]
/linux-6.1.9/fs/btrfs/
Dbtrfs_inode.h264 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
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()
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()
Dblock-rsv.c370 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID || in btrfs_update_global_block_rsv()
371 root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID || in btrfs_update_global_block_rsv()
372 root->root_key.objectid == BTRFS_FREE_SPACE_TREE_OBJECTID) { in btrfs_update_global_block_rsv()
423 switch (root->root_key.objectid) { in btrfs_init_root_block_rsv()
485 root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID)) in get_block_rsv()
Drelocation.c739 struct btrfs_key root_key; in create_reloc_root() local
747 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
748 root_key.type = BTRFS_ROOT_ITEM_KEY; 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()
806 &root_key, root_item); in create_reloc_root()
812 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); 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()
[all …]
Droot-tree.c64 struct btrfs_key *root_key) in btrfs_find_root() argument
98 if (root_key) in btrfs_find_root()
99 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
140 root->root_key.objectid); in btrfs_update_root()
Ddisk-io.c979 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
983 root->root_key.objectid = objectid; in __setup_root()
1086 return btrfs_comp_cpu_keys(&a->root_key, &b->root_key); in global_root_cmp()
1094 return btrfs_comp_cpu_keys(key, &root->root_key); in global_root_key_cmp()
1198 root->root_key.objectid = objectid; in btrfs_create_tree()
1199 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree()
1200 root->root_key.offset = 0; in btrfs_create_tree()
1260 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1261 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree()
1262 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
[all …]
Dextent-tree.c2269 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2347 root->root_key.objectid || in check_committed_ref()
2436 key.offset, root->root_key.objectid, in __btrfs_mod_ref()
2450 root->root_key.objectid, for_reloc); in __btrfs_mod_ref()
4550 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_reserve_extent()
4801 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
4805 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, in btrfs_alloc_reserved_file_extent()
4922 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_init_new_buffer()
5017 root->root_key.objectid, false); in btrfs_alloc_tree_block()
5097 generation <= root->root_key.offset) in reada_walk_down()
[all …]
Dtransaction.c415 (unsigned long)root->root_key.objectid, in record_root_in_trans()
461 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
539 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1158 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1233 &root->root_key, in update_cowonly_root()
1421 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1442 &root->root_key, in commit_fs_roots()
1552 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1771 parent_root->root_key.objectid, in create_pending_snapshot()
2571 btrfs_debug(fs_info, "cleaner removing %llu", root->root_key.objectid); in btrfs_clean_one_deleted_snapshot()
Dfile-item.c490 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
691 inode->root->root_key.objectid, in btrfs_csum_one_bio()
822 ASSERT(root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID || in btrfs_del_csums()
823 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums()
1123 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_csum_file_blocks()
1272 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
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 …]
Dqgroup.c1293 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
3087 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3743 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data()
3858 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3893 inode->root->root_key.objectid, in __btrfs_qgroup_release_data()
3986 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta()
4027 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
4033 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
4043 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
4054 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta()
[all …]
Dlocking.c97 btrfs_set_buffer_lockdep_class(root->root_key.objectid, in btrfs_maybe_reset_lockdep_class()
Dinode.c1099 inode->root->root_key.objectid, in submit_compressed_extents()
4095 root->root_key.objectid, ret); in btrfs_read_locked_inode()
4454 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol()
4510 root->root_key.objectid, dir_ino, in btrfs_unlink_subvol()
4559 if (key.objectid == root->root_key.objectid) { in may_destroy_subvol()
4569 key.objectid = root->root_key.objectid; in may_destroy_subvol()
4582 if (key.objectid == root->root_key.objectid && in may_destroy_subvol()
4676 dest->root_key.objectid); in btrfs_delete_subvolume()
4683 root->root_key.objectid); in btrfs_delete_subvolume()
4737 dest->root_key.objectid); in btrfs_delete_subvolume()
[all …]
Dioctl.c2362 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
2375 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2771 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2937 args->treeid = root->root_key.objectid; in btrfs_ioctl_ino_lookup()
3033 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
3148 objectid = root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
3801 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3830 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
4721 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit()
4852 root->root_key.objectid); in _btrfs_ioctl_set_received_subvol()
[all …]
Dsend.c340 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
342 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
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()
1557 ino, root->root_key.objectid); in read_symlink()
2402 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2418 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
5056 sctx->send_root->root_key.objectid); in put_file_data()
[all …]
Dsuper.c1631 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1633 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1701 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
2431 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs()
2433 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
Dprops.c264 root->root_key.objectid, ret); in inode_prop_iterator()
Dfile.c165 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
563 update_refs = (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in btrfs_drop_extents()
694 root->root_key.objectid, in btrfs_drop_extents()
784 root->root_key.objectid, in btrfs_drop_extents()
1065 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written()
1091 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset, in btrfs_mark_extent_written()
2618 btrfs_init_data_ref(&ref, root->root_key.objectid, in btrfs_insert_replace_extent()
Dinode-item.c678 root->root_key.objectid, false); in btrfs_truncate_inode_items()
/linux-6.1.9/fs/btrfs/tests/
Dqgroup-tests.c460 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups()
461 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_test_qgroups()
462 root->root_key.offset = 0; 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()
Dfree-space-tree-tests.c449 root->root_key.objectid = BTRFS_FREE_SPACE_TREE_OBJECTID; in run_test()
450 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in run_test()
451 root->root_key.offset = 0; in run_test()
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()
/linux-6.1.9/include/trace/events/
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;
696 BTRFS_I(inode)->root->root_key.objectid;
740 __entry->root_objectid = inode->root->root_key.objectid;
771 BTRFS_I(inode)->root->root_key.objectid;
1054 __entry->root_objectid = fs_info->chunk_root->root_key.objectid;
1099 __entry->root_objectid = root->root_key.objectid;
[all …]
/linux-6.1.9/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