Lines Matching refs:root_item

1270 	memset(&root->root_item, 0, sizeof(root->root_item));  in __setup_root()
1352 root->root_item.flags = 0; in btrfs_create_tree()
1353 root->root_item.byte_limit = 0; in btrfs_create_tree()
1354 btrfs_set_root_bytenr(&root->root_item, leaf->start); in btrfs_create_tree()
1355 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1356 btrfs_set_root_level(&root->root_item, 0); in btrfs_create_tree()
1357 btrfs_set_root_refs(&root->root_item, 1); in btrfs_create_tree()
1358 btrfs_set_root_used(&root->root_item, leaf->len); in btrfs_create_tree()
1359 btrfs_set_root_last_snapshot(&root->root_item, 0); in btrfs_create_tree()
1360 btrfs_set_root_dirid(&root->root_item, 0); in btrfs_create_tree()
1362 memcpy(root->root_item.uuid, uuid.b, BTRFS_UUID_SIZE); in btrfs_create_tree()
1363 root->root_item.drop_level = 0; in btrfs_create_tree()
1368 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1462 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
1469 btrfs_set_root_node(&log_root->root_item, log_root->node); in btrfs_add_log_tree()
1502 &root->root_item, &root->root_key); in btrfs_read_tree_root()
1509 generation = btrfs_root_generation(&root->root_item); in btrfs_read_tree_root()
1510 root->node = read_tree_block(root, btrfs_root_bytenr(&root->root_item), in btrfs_read_tree_root()
1544 btrfs_check_and_init_root_item(&root->root_item); in btrfs_read_fs_root()
1663 if (check_ref && btrfs_root_refs(&root->root_item) == 0) in btrfs_get_fs_root()
1672 if (check_ref && btrfs_root_refs(&root->root_item) == 0) { in btrfs_get_fs_root()
2825 btrfs_set_root_node(&chunk_root->root_item, chunk_root->node); in open_ctree()
2864 btrfs_set_root_node(&tree_root->root_item, tree_root->node); in open_ctree()
2866 btrfs_set_root_refs(&tree_root->root_item, 1); in open_ctree()
3608 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_drop_and_free_fs_root()
3666 if (btrfs_root_refs(&gang[i]->root_item) == 0) { in btrfs_cleanup_fs_roots()