Home
last modified time | relevance | path

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

12

/Linux-v5.10/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.10/fs/btrfs/
Dbtrfs_inode.h232 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
348 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error()
351 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
359 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()
228 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
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()
782 if (root->root_key.objectid == objectid) { in create_reloc_root()
793 &root_key, root_item); in create_reloc_root()
797 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
850 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
858 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
[all …]
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()
572 root->root_key.objectid); in btrfs_find_free_objectid()
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.c2311 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2389 root->root_key.objectid || in check_committed_ref()
2420 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
2482 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2497 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
3393 root->root_key.objectid); in btrfs_free_tree_block()
3395 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
3408 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
4601 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
4605 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, offset); in btrfs_alloc_reserved_file_extent()
[all …]
Dtransaction.c165 if (is_fstree(root->root_key.objectid)) in switch_commit_roots()
388 (unsigned long)root->root_key.objectid, in record_root_in_trans()
434 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
510 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1083 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1158 &root->root_key, in update_cowonly_root()
1296 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1317 &root->root_key, in commit_fs_roots()
1412 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1630 parent_root->root_key.objectid, in create_pending_snapshot()
[all …]
Ddisk-io.c1083 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.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1264 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1299 &root->root_item, &root->root_key); in read_tree_root_path()
[all …]
Dqgroup.c1212 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
2983 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3624 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data()
3740 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3775 inode->root->root_key.objectid, in __btrfs_qgroup_release_data()
3868 !is_fstree(root->root_key.objectid) || num_bytes == 0) in qgroup_reserve_meta()
3908 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
3914 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
3924 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
3935 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta()
[all …]
Dinode.c1049 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in cow_file_range()
1084 if (root->root_key.objectid == in cow_file_range()
1379 const bool is_reloc_ino = (inode->root->root_key.objectid == in fallback_to_cow()
1735 if (root->root_key.objectid == in run_delalloc_nocow()
2080 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_delalloc_extent()
2213 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_data_bio()
2900 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_verify_data_csum()
3433 root->root_key.objectid, ret); in btrfs_read_locked_inode()
3568 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode()
3788 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol()
[all …]
Dioctl.c742 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol()
1980 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
1993 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2398 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2573 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2671 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2787 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
3386 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3416 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
4308 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit()
[all …]
Dctree.c163 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list()
888 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
900 if ((owner == root->root_key.objectid || in update_ref_for_cow()
901 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
907 if (root->root_key.objectid == in update_ref_for_cow()
919 if (root->root_key.objectid == in update_ref_for_cow()
937 if (root->root_key.objectid == in update_ref_for_cow()
990 root->root_key.objectid, disk_key, level, in alloc_tree_block_no_bg_flush()
1042 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
1058 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
[all …]
Dsuper.c1476 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1478 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1546 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
2253 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs()
2255 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
Dfile-item.c338 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
698 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums()
1095 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
Dsend.c309 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
311 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
1205 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1207 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1217 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1219 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1514 ino, root->root_key.objectid); in read_symlink()
2368 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2384 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
5057 offset, len, clone_root->root->root_key.objectid, in send_clone()
[all …]
Dprops.c239 root->root_key.objectid, ret); in inode_prop_iterator()
Dfile.c160 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
847 root->root_key.objectid, in __btrfs_drop_extents()
934 root->root_key.objectid, in __btrfs_drop_extents()
1226 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written()
1252 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset); in btrfs_mark_extent_written()
2581 btrfs_init_data_ref(&ref, root->root_key.objectid, in btrfs_insert_replace_extent()
Dreflink.c601 root_dst->root_key.objectid, in btrfs_extent_same()
Dbackref.c1529 .root_objectid = root->root_key.objectid,
2096 fs_root->root_key.objectid);
2752 cur->bytenr, level - 1, root->root_key.objectid,
Ddelayed-inode.c1478 name_len, name, delayed_node->root->root_key.objectid, in btrfs_insert_delayed_dir_index()
1554 index, node->root->root_key.objectid, in btrfs_delete_delayed_dir_index()
Dtree-log.c359 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
716 root->root_key.objectid, in replay_one_extent()
727 root->root_key.objectid, in replay_one_extent()
2921 &log->root_key, root_item); in update_log_root()
2924 &log->root_key, root_item); in update_log_root()
/Linux-v5.10/include/trace/events/
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.objectid;
[all …]
/Linux-v5.10/fs/btrfs/tests/
Dqgroup-tests.c503 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
519 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
/Linux-v5.10/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