Home
last modified time | relevance | path

Searched refs:root_item (Results 1 – 8 of 8) sorted by relevance

/fs/btrfs/
Dtransaction.c96 if (root->root_item.refs != 0) { in btrfs_record_root_in_trans()
432 old_root_bytenr = btrfs_root_bytenr(&root->root_item); in update_cowonly_root()
435 btrfs_set_root_bytenr(&root->root_item, in update_cowonly_root()
437 btrfs_set_root_level(&root->root_item, in update_cowonly_root()
439 btrfs_set_root_generation(&root->root_item, trans->transid); in update_cowonly_root()
445 &root->root_item); in update_cowonly_root()
541 btrfs_root_bytenr(&root->root_item)); in add_dirty_roots()
561 &root->root_item); in add_dirty_roots()
565 memset(&root->root_item.drop_progress, 0, in add_dirty_roots()
567 root->root_item.drop_level = 0; in add_dirty_roots()
[all …]
Dioctl.c61 struct btrfs_root_item root_item; in create_subvol() local
103 inode_item = &root_item.inode; in create_subvol()
111 btrfs_set_root_bytenr(&root_item, leaf->start); in create_subvol()
112 btrfs_set_root_generation(&root_item, trans->transid); in create_subvol()
113 btrfs_set_root_level(&root_item, 0); in create_subvol()
114 btrfs_set_root_refs(&root_item, 1); in create_subvol()
115 btrfs_set_root_used(&root_item, 0); in create_subvol()
116 btrfs_set_root_last_snapshot(&root_item, 0); in create_subvol()
118 memset(&root_item.drop_progress, 0, sizeof(root_item.drop_progress)); in create_subvol()
119 root_item.drop_level = 0; in create_subvol()
[all …]
Dextent-tree.c1107 root_used = btrfs_root_used(&extent_root->root_item); in free_extents()
1108 btrfs_set_root_used(&extent_root->root_item, in free_extents()
1443 last_snapshot = btrfs_root_last_snapshot(&root->root_item); in btrfs_cross_ref_exist()
2622 used = btrfs_root_used(&extent_root->root_item); in finish_current_insert()
2623 btrfs_set_root_used(&extent_root->root_item, in finish_current_insert()
2834 root_used = btrfs_root_used(&root->root_item); in __free_extent()
2835 btrfs_set_root_used(&root->root_item, in __free_extent()
3502 root_used = btrfs_root_used(&root->root_item); in __btrfs_alloc_reserved_extent()
3503 btrfs_set_root_used(&root->root_item, root_used + num_bytes); in __btrfs_alloc_reserved_extent()
4283 struct btrfs_root_item *root_item = &root->root_item; in walk_up_tree() local
[all …]
Ddisk-io.c916 memset(&root->root_item, 0, sizeof(root->root_item)); in __setup_root()
946 &root->root_item, &root->root_key); in find_and_setup_root()
949 generation = btrfs_root_generation(&root->root_item); in find_and_setup_root()
950 blocksize = btrfs_level_size(root, btrfs_root_level(&root->root_item)); in find_and_setup_root()
951 root->node = read_tree_block(root, btrfs_root_bytenr(&root->root_item), in find_and_setup_root()
1068 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
1075 btrfs_set_root_bytenr(&log_root->root_item, log_root->node->start); in btrfs_add_log_tree()
1076 btrfs_set_root_generation(&log_root->root_item, trans->transid); in btrfs_add_log_tree()
1122 read_extent_buffer(l, &root->root_item, in btrfs_read_fs_root_no_radix()
1124 sizeof(root->root_item)); in btrfs_read_fs_root_no_radix()
[all …]
Dsysfs.c34 (unsigned long long)btrfs_root_used(&root->root_item)); in root_blocks_used_show()
40 (unsigned long long)btrfs_root_limit(&root->root_item)); in root_block_limit_show()
Dtree-log.c1835 &log->root_key, &log->root_item); in update_log_root()
1838 &log->root_key, &log->root_item); in update_log_root()
1922 btrfs_set_root_bytenr(&log->root_item, log->node->start); in btrfs_sync_log()
1923 btrfs_set_root_generation(&log->root_item, trans->transid); in btrfs_sync_log()
1924 btrfs_set_root_level(&log->root_item, btrfs_header_level(log->node)); in btrfs_sync_log()
Dctree.h832 struct btrfs_root_item root_item; member
Dinode.c2963 ri = &(*sub_root)->root_item; in fixup_tree_root_location()