Home
last modified time | relevance | path

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

12

/Linux-v5.4/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, auth[:-1] + 'B', None)
88 blob = self.client.seal(self.root_key, data, auth, policy_dig)
102 result = self.client.unseal(self.root_key, blob, auth, handle)
[all …]
/Linux-v5.4/fs/btrfs/
Droot-tree.c68 struct btrfs_key *root_key) in btrfs_find_root() argument
102 if (root_key) in btrfs_find_root()
103 memcpy(root_key, &found_key, sizeof(found_key)); in btrfs_find_root()
144 root->root_key.objectid); in btrfs_update_root()
215 struct btrfs_key root_key; in btrfs_find_orphan_roots() local
228 root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_find_orphan_roots()
229 root_key.offset = (u64)-1; in btrfs_find_orphan_roots()
255 root_key.objectid = key.offset; in btrfs_find_orphan_roots()
265 root = btrfs_lookup_fs_root(fs_info, root_key.objectid); in btrfs_find_orphan_roots()
276 root = btrfs_read_fs_root(tree_root, &root_key); in btrfs_find_orphan_roots()
[all …]
Dbtrfs_inode.h208 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
352 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error()
355 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
363 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()
172 key.objectid = root->root_key.objectid; in btrfs_get_parent()
251 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
Dinode-map.c183 root->root_key.objectid); in start_caching()
412 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache()
413 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache()
414 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
570 root->root_key.objectid); in btrfs_find_free_objectid()
Drelocation.c898 root->root_key.objectid, in build_backref_tree()
1358 struct btrfs_key root_key; in create_reloc_root() local
1364 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
1365 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root()
1366 root_key.offset = objectid; in create_reloc_root()
1368 if (root->root_key.objectid == objectid) { in create_reloc_root()
1403 if (root->root_key.objectid == objectid) { in create_reloc_root()
1414 &root_key, root_item); in create_reloc_root()
1418 reloc_root = btrfs_read_fs_root(fs_info->tree_root, &root_key); in create_reloc_root()
1452 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
[all …]
Dextent-tree.c2308 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2381 root->root_key.objectid || in check_committed_ref()
2412 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
2474 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2489 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
3252 root->root_key.objectid); in btrfs_free_tree_block()
3254 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
3267 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
4347 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
4351 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, offset); in btrfs_alloc_reserved_file_extent()
[all …]
Dtransaction.c91 if (is_fstree(root->root_key.objectid)) in switch_commit_roots()
309 (unsigned long)root->root_key.objectid, in record_root_in_trans()
355 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
431 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1015 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1090 &root->root_key, in update_cowonly_root()
1226 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1247 &root->root_key, in commit_fs_roots()
1342 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1561 parent_root->root_key.objectid, in create_pending_snapshot()
[all …]
Dqgroup.c1094 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
2881 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3410 !is_fstree(root->root_key.objectid) || len == 0) in btrfs_qgroup_reserve_data()
3446 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, in btrfs_qgroup_reserve_data()
3499 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3535 BTRFS_I(inode)->root->root_key.objectid, in __btrfs_qgroup_release_data()
3628 !is_fstree(root->root_key.objectid) || num_bytes == 0) in __btrfs_qgroup_reserve_meta()
3653 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
3659 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
3669 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
[all …]
Ddisk-io.c1190 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
1197 root->root_key.objectid = objectid; in __setup_root()
1257 root->root_key.objectid = objectid; in btrfs_create_tree()
1258 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree()
1259 root->root_key.offset = 0; in btrfs_create_tree()
1322 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1323 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree()
1324 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1374 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1417 &root->root_item, &root->root_key); in btrfs_read_tree_root()
[all …]
Dinode.c1055 if (root->root_key.objectid == in cow_file_range()
1612 if (root->root_key.objectid == in run_delalloc_nocow()
1961 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_delalloc_extent()
2100 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_bio_hook()
2468 if (BTRFS_I(inode)->root->root_key.objectid == root_id && in record_one_backref()
3336 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_readpage_end_io_hook()
3558 if (dead_root->root_key.objectid == in btrfs_orphan_cleanup()
3862 root->root_key.objectid, ret); in btrfs_read_locked_inode()
4001 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode()
4238 ret = btrfs_del_root_ref(trans, objectid, root->root_key.objectid, in btrfs_unlink_subvol()
[all …]
Dbackref.c510 struct btrfs_key root_key; in resolve_indirect_ref() local
517 root_key.objectid = ref->root_id; in resolve_indirect_ref()
518 root_key.type = BTRFS_ROOT_ITEM_KEY; in resolve_indirect_ref()
519 root_key.offset = (u64)-1; in resolve_indirect_ref()
523 root = btrfs_get_fs_root(fs_info, &root_key, false); in resolve_indirect_ref()
1478 .root_objectid = root->root_key.objectid,
2045 fs_root->root_key.objectid);
Dioctl.c710 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol()
1968 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
1981 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2375 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2550 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2648 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2766 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
3267 root_dst->root_key.objectid, in btrfs_extent_same()
3989 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
4020 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
[all …]
Dctree.c203 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list()
931 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
943 if ((owner == root->root_key.objectid || in update_ref_for_cow()
944 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
950 if (root->root_key.objectid == in update_ref_for_cow()
962 if (root->root_key.objectid == in update_ref_for_cow()
982 if (root->root_key.objectid == in update_ref_for_cow()
1034 root->root_key.objectid, disk_key, level, in alloc_tree_block_no_bg_flush()
1085 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
1101 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
[all …]
Dsend.c307 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
309 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()
1488 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()
4908 offset, len, clone_root->root->root_key.objectid, in send_clone()
[all …]
Dprops.c239 root->root_key.objectid, ret); in inode_prop_iterator()
Dsuper.c1373 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1438 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
2119 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs()
2121 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
Dfile.c159 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
918 root->root_key.objectid, in __btrfs_drop_extents()
1005 root->root_key.objectid, in __btrfs_drop_extents()
1301 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written()
1327 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset); in btrfs_mark_extent_written()
2501 btrfs_init_data_ref(&ref, root->root_key.objectid, in btrfs_insert_clone_extent()
Dfile-item.c235 if (BTRFS_I(inode)->root->root_key.objectid == in __btrfs_lookup_bio_sums()
1006 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
Dscrub.c650 struct btrfs_key root_key; in scrub_print_warning_inode() local
653 root_key.objectid = root; in scrub_print_warning_inode()
654 root_key.type = BTRFS_ROOT_ITEM_KEY; in scrub_print_warning_inode()
655 root_key.offset = (u64)-1; in scrub_print_warning_inode()
656 local_root = btrfs_read_fs_root_no_name(fs_info, &root_key); in scrub_print_warning_inode()
Dtree-log.c357 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
723 root->root_key.objectid, in replay_one_extent()
734 root->root_key.objectid, in replay_one_extent()
2916 WARN_ON(log->root_key.objectid != in walk_log_tree()
2944 &log->root_key, root_item); in update_log_root()
2947 &log->root_key, root_item); in update_log_root()
Ddelayed-inode.c1468 name_len, name, delayed_node->root->root_key.objectid, in btrfs_insert_delayed_dir_index()
1544 index, node->root->root_key.objectid, in btrfs_delete_delayed_dir_index()
/Linux-v5.4/include/trace/events/
Dbtrfs.h157 __entry->root_objectid = root->root_key.objectid;
189 BTRFS_I(inode)->root->root_key.objectid;
266 __entry->root_objectid = root->root_key.objectid;
355 __entry->root_obj = bi->root->root_key.objectid;
406 __entry->root_obj = bi->root->root_key.objectid;
507 BTRFS_I(inode)->root->root_key.objectid;
593 BTRFS_I(inode)->root->root_key.objectid;
639 BTRFS_I(page->mapping->host)->root->root_key.objectid;
672 BTRFS_I(inode)->root->root_key.objectid;
956 __entry->root_objectid = fs_info->chunk_root->root_key.objectid;
[all …]
/Linux-v5.4/fs/btrfs/tests/
Dqgroup-tests.c503 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
518 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
/Linux-v5.4/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