Lines Matching refs:root_item
1084 memset(&root->root_item, 0, sizeof(root->root_item)); in __setup_root()
1167 root->root_item.flags = 0; in btrfs_create_tree()
1168 root->root_item.byte_limit = 0; in btrfs_create_tree()
1169 btrfs_set_root_bytenr(&root->root_item, leaf->start); in btrfs_create_tree()
1170 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1171 btrfs_set_root_level(&root->root_item, 0); in btrfs_create_tree()
1172 btrfs_set_root_refs(&root->root_item, 1); in btrfs_create_tree()
1173 btrfs_set_root_used(&root->root_item, leaf->len); in btrfs_create_tree()
1174 btrfs_set_root_last_snapshot(&root->root_item, 0); in btrfs_create_tree()
1175 btrfs_set_root_dirid(&root->root_item, 0); in btrfs_create_tree()
1177 generate_random_guid(root->root_item.uuid); in btrfs_create_tree()
1179 export_guid(root->root_item.uuid, &guid_null); in btrfs_create_tree()
1180 root->root_item.drop_level = 0; in btrfs_create_tree()
1185 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1266 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
1274 btrfs_set_root_node(&log_root->root_item, log_root->node); in btrfs_add_log_tree()
1299 &root->root_item, &root->root_key); in read_tree_root_path()
1306 generation = btrfs_root_generation(&root->root_item); in read_tree_root_path()
1307 level = btrfs_root_level(&root->root_item); in read_tree_root_path()
1309 btrfs_root_bytenr(&root->root_item), in read_tree_root_path()
1372 btrfs_check_and_init_root_item(&root->root_item); in btrfs_init_fs_root()
1384 btrfs_root_refs(&root->root_item) > 0) { in btrfs_init_fs_root()
1558 if (check_ref && btrfs_root_refs(&root->root_item) == 0) { in btrfs_get_root_ref()
1572 if (check_ref && btrfs_root_refs(&root->root_item) == 0) { in btrfs_get_root_ref()
2672 btrfs_set_root_node(&tree_root->root_item, tree_root->node); in init_tree_roots()
2674 btrfs_set_root_refs(&tree_root->root_item, 1); in init_tree_roots()
3157 btrfs_set_root_node(&chunk_root->root_item, chunk_root->node); in open_ctree()
4024 if (btrfs_root_refs(&gang[i]->root_item) == 0) { in btrfs_cleanup_fs_roots()