Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/fs/btrfs/
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()
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.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.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()
Dextent-tree.c2271 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2349 root->root_key.objectid || in check_committed_ref()
2380 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
2442 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2457 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
3325 root->root_key.objectid); in btrfs_free_tree_block()
3327 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
3336 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
4517 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
4521 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, offset); in btrfs_alloc_reserved_file_extent()
[all …]
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()
Dtransaction.c166 if (is_fstree(root->root_key.objectid)) in switch_commit_roots()
428 (unsigned long)root->root_key.objectid, in record_root_in_trans()
474 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
550 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1123 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1198 &root->root_key, in update_cowonly_root()
1337 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1358 &root->root_key, in commit_fs_roots()
1455 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1673 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.c1267 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
3048 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3717 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data()
3833 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3868 inode->root->root_key.objectid, in __btrfs_qgroup_release_data()
3961 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta()
4001 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
4007 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
4017 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
4028 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta()
[all …]
Dinode.c1048 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in cow_file_range()
1083 if (root->root_key.objectid == in cow_file_range()
1378 const bool is_reloc_ino = (inode->root->root_key.objectid == in fallback_to_cow()
1734 if (root->root_key.objectid == in run_delalloc_nocow()
2079 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_delalloc_extent()
2212 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_data_bio()
2911 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_verify_data_csum()
3445 root->root_key.objectid, ret); in btrfs_read_locked_inode()
3580 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode()
3800 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol()
[all …]
Dfile-item.c338 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
578 inode->root->root_key.objectid, in btrfs_csum_one_bio()
709 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums()
1106 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
Dioctl.c754 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol()
2048 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
2061 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2466 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2641 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2739 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2857 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
3452 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3482 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
4356 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()
891 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
903 if ((owner == root->root_key.objectid || in update_ref_for_cow()
904 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
910 if (root->root_key.objectid == in update_ref_for_cow()
922 if (root->root_key.objectid == in update_ref_for_cow()
940 if (root->root_key.objectid == in update_ref_for_cow()
993 root->root_key.objectid, disk_key, level, in alloc_tree_block_no_bg_flush()
1045 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
1061 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
[all …]
Dsuper.c1501 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1503 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1571 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
2286 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs()
2288 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
Dsend.c310 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
312 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
1206 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1208 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1218 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1220 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1515 ino, root->root_key.objectid); in read_symlink()
2369 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2385 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
5012 sctx->send_root->root_key.objectid); in put_file_data()
[all …]
Dfile.c160 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
713 update_refs = (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in __btrfs_drop_extents()
846 root->root_key.objectid, in __btrfs_drop_extents()
933 root->root_key.objectid, in __btrfs_drop_extents()
1225 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written()
1251 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset); in btrfs_mark_extent_written()
2587 btrfs_init_data_ref(&ref, root->root_key.objectid, in btrfs_insert_replace_extent()
Dprops.c239 root->root_key.objectid, ret); in inode_prop_iterator()
Dreflink.c648 root_dst->root_key.objectid, in btrfs_extent_same()
Dbackref.c1574 .root_objectid = root->root_key.objectid,
2162 fs_root->root_key.objectid);
2811 cur->bytenr, level - 1, root->root_key.objectid,
Ddelayed-inode.c1485 name_len, name, delayed_node->root->root_key.objectid, in btrfs_insert_delayed_dir_index()
1561 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()
718 root->root_key.objectid, in replay_one_extent()
729 root->root_key.objectid, in replay_one_extent()
2968 &log->root_key, root_item); in update_log_root()
2971 &log->root_key, root_item); in update_log_root()
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dqgroup-tests.c505 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
521 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
/kernel/linux/linux-5.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