/fs/btrfs/ |
D | root-tree.c | 78 struct btrfs_path *path, struct btrfs_root_item *root_item, in btrfs_find_root() argument 111 if (root_item) in btrfs_find_root() 112 btrfs_read_root_item(l, slot, root_item); in btrfs_find_root() 283 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_find_orphan_roots() 330 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_find_orphan_roots() 486 void btrfs_check_and_init_root_item(struct btrfs_root_item *root_item) in btrfs_check_and_init_root_item() argument 488 u64 inode_flags = btrfs_stack_inode_flags(&root_item->inode); in btrfs_check_and_init_root_item() 492 btrfs_set_stack_inode_flags(&root_item->inode, inode_flags); in btrfs_check_and_init_root_item() 493 btrfs_set_root_flags(root_item, 0); in btrfs_check_and_init_root_item() 494 btrfs_set_root_limit(root_item, 0); in btrfs_check_and_init_root_item() [all …]
|
D | transaction.c | 1099 old_root_used = btrfs_root_used(&root->root_item); in update_cowonly_root() 1102 old_root_bytenr = btrfs_root_bytenr(&root->root_item); in update_cowonly_root() 1104 old_root_used == btrfs_root_used(&root->root_item)) in update_cowonly_root() 1107 btrfs_set_root_node(&root->root_item, root->node); in update_cowonly_root() 1110 &root->root_item); in update_cowonly_root() 1114 old_root_used = btrfs_root_used(&root->root_item); in update_cowonly_root() 1258 btrfs_set_root_node(&root->root_item, in commit_fs_roots() 1264 &root->root_item); in commit_fs_roots() 1434 ASSERT(pending->root_item); in create_pending_snapshot() 1435 new_root_item = pending->root_item; in create_pending_snapshot() [all …]
|
D | relocation.c | 540 if (btrfs_root_last_snapshot(&reloc_root->root_item) == in should_ignore_root() 617 generation != btrfs_root_generation(&root->root_item)) in find_tree_root() 897 if (btrfs_root_level(&root->root_item) == cur->level) { 899 ASSERT(btrfs_root_bytenr(&root->root_item) == 941 ASSERT(btrfs_root_bytenr(&root->root_item) == 1385 struct btrfs_root_item *root_item; local 1390 root_item = kmalloc(sizeof(*root_item), GFP_NOFS); 1391 BUG_ON(!root_item); 1404 last_snap = btrfs_root_last_snapshot(&root->root_item); 1414 btrfs_set_root_last_snapshot(&root->root_item, commit_root_gen); [all …]
|
D | ioctl.c | 442 struct btrfs_root_item *root_item; in create_subvol() local 458 root_item = kzalloc(sizeof(*root_item), GFP_KERNEL); in create_subvol() 459 if (!root_item) in create_subvol() 518 inode_item = &root_item->inode; in create_subvol() 525 btrfs_set_root_flags(root_item, 0); in create_subvol() 526 btrfs_set_root_limit(root_item, 0); in create_subvol() 529 btrfs_set_root_bytenr(root_item, leaf->start); in create_subvol() 530 btrfs_set_root_generation(root_item, trans->transid); in create_subvol() 531 btrfs_set_root_level(root_item, 0); in create_subvol() 532 btrfs_set_root_refs(root_item, 1); in create_subvol() [all …]
|
D | disk-io.c | 1365 memset(&root->root_item, 0, sizeof(root->root_item)); in __setup_root() 1453 root->root_item.flags = 0; in btrfs_create_tree() 1454 root->root_item.byte_limit = 0; in btrfs_create_tree() 1455 btrfs_set_root_bytenr(&root->root_item, leaf->start); in btrfs_create_tree() 1456 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree() 1457 btrfs_set_root_level(&root->root_item, 0); in btrfs_create_tree() 1458 btrfs_set_root_refs(&root->root_item, 1); in btrfs_create_tree() 1459 btrfs_set_root_used(&root->root_item, leaf->len); in btrfs_create_tree() 1460 btrfs_set_root_last_snapshot(&root->root_item, 0); in btrfs_create_tree() 1461 btrfs_set_root_dirid(&root->root_item, 0); in btrfs_create_tree() [all …]
|
D | transaction.h | 142 struct btrfs_root_item *root_item; member
|
D | send.c | 2397 if (!btrfs_is_empty_uuid(sctx->send_root->root_item.received_uuid)) in send_subvol_begin() 2399 sctx->send_root->root_item.received_uuid); in send_subvol_begin() 2402 sctx->send_root->root_item.uuid); in send_subvol_begin() 2405 le64_to_cpu(sctx->send_root->root_item.ctransid)); in send_subvol_begin() 2407 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin() 2409 parent_root->root_item.received_uuid); in send_subvol_begin() 2412 parent_root->root_item.uuid); in send_subvol_begin() 2414 le64_to_cpu(sctx->parent_root->root_item.ctransid)); in send_subvol_begin() 4765 if (!btrfs_is_empty_uuid(clone_root->root->root_item.received_uuid)) in send_clone() 4767 clone_root->root->root_item.received_uuid); in send_clone() [all …]
|
D | volumes.c | 4111 struct btrfs_root_item root_item; in btrfs_uuid_scan_kthread() local 4146 if (item_size < sizeof(root_item)) in btrfs_uuid_scan_kthread() 4149 read_extent_buffer(eb, &root_item, in btrfs_uuid_scan_kthread() 4151 (int)sizeof(root_item)); in btrfs_uuid_scan_kthread() 4152 if (btrfs_root_refs(&root_item) == 0) in btrfs_uuid_scan_kthread() 4155 if (!btrfs_is_empty_uuid(root_item.uuid) || in btrfs_uuid_scan_kthread() 4156 !btrfs_is_empty_uuid(root_item.received_uuid)) { in btrfs_uuid_scan_kthread() 4175 if (!btrfs_is_empty_uuid(root_item.uuid)) { in btrfs_uuid_scan_kthread() 4177 root_item.uuid, in btrfs_uuid_scan_kthread() 4187 if (!btrfs_is_empty_uuid(root_item.received_uuid)) { in btrfs_uuid_scan_kthread() [all …]
|
D | inode-map.c | 415 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_save_ino_cache()
|
D | check-integrity.c | 1035 struct btrfs_root_item root_item; in btrfsic_process_metablock() local 1045 sf->block_ctx, &root_item, in btrfsic_process_metablock() 1048 next_bytenr = btrfs_root_bytenr(&root_item); in btrfsic_process_metablock() 1064 &root_item)); in btrfsic_process_metablock()
|
D | extent-tree.c | 3153 btrfs_root_last_snapshot(&root->root_item)) in check_committed_ref() 5629 num_bytes = btrfs_root_used(&fs_info->extent_root->root_item) + in update_global_block_rsv() 5630 btrfs_root_used(&fs_info->csum_root->root_item) + in update_global_block_rsv() 5631 btrfs_root_used(&fs_info->tree_root->root_item); in update_global_block_rsv() 9206 struct btrfs_root_item *root_item = &root->root_item; in btrfs_drop_snapshot() local 9238 if (btrfs_disk_key_objectid(&root_item->drop_progress) == 0) { in btrfs_drop_snapshot() 9247 btrfs_disk_key_to_cpu(&key, &root_item->drop_progress); in btrfs_drop_snapshot() 9251 level = root_item->drop_level; in btrfs_drop_snapshot() 9284 if (level == root_item->drop_level) in btrfs_drop_snapshot() 9324 &root_item->drop_progress, in btrfs_drop_snapshot() [all …]
|
D | ctree.h | 1126 struct btrfs_root_item root_item; member 2095 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_RDONLY)) != 0; in btrfs_root_readonly() 2100 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0; in btrfs_root_dead() 2955 struct btrfs_path *path, struct btrfs_root_item *root_item,
|
D | ctree.c | 964 btrfs_root_last_snapshot(&root->root_item) || in btrfs_block_can_be_shared() 1826 btrfs_set_root_used(&root->root_item, in root_add_used() 1827 btrfs_root_used(&root->root_item) + size); in root_add_used() 1834 btrfs_set_root_used(&root->root_item, in root_sub_used() 1835 btrfs_root_used(&root->root_item) - size); in root_sub_used()
|
D | inode.c | 2944 u64 last_snapshot = btrfs_root_last_snapshot(&root->root_item); in btrfs_finish_ordered_io() 3242 btrfs_root_refs(&root->root_item) > 0) { in btrfs_orphan_commit_root() 5243 ((btrfs_root_refs(&root->root_item) != 0 && in btrfs_evict_inode() 5265 BUG_ON(btrfs_root_refs(&root->root_item) != 0 && in btrfs_evict_inode() 5493 location->objectid = btrfs_root_dirid(&new_root->root_item); in fixup_tree_root_location() 5551 if (empty && btrfs_root_refs(&root->root_item) == 0) { in inode_tree_del() 5570 WARN_ON(btrfs_root_refs(&root->root_item) != 0); in btrfs_invalidate_inodes() 5779 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_dentry_delete() 9469 if (btrfs_root_refs(&root->root_item) == 0) in btrfs_drop_inode()
|
D | tree-log.c | 2659 &log->root_key, &log->root_item); in update_log_root() 2662 &log->root_key, &log->root_item); in update_log_root() 2822 btrfs_set_root_node(&log->root_item, log->node); in btrfs_sync_log() 5420 btrfs_root_refs(&root->root_item) == 0) { in btrfs_log_inode_parent()
|
D | free-space-cache.c | 3475 u64 root_gen = btrfs_root_generation(&root->root_item); in load_free_ino_cache()
|