Home
last modified time | relevance | path

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

12

/fs/btrfs/
Drelocation.c737 struct btrfs_key root_key; in create_reloc_root() local
745 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
746 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root()
747 root_key.offset = objectid; in create_reloc_root()
749 if (root->root_key.objectid == objectid) { in create_reloc_root()
793 if (root->root_key.objectid == objectid) { in create_reloc_root()
804 &root_key, root_item); in create_reloc_root()
810 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
872 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
880 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
[all …]
Dbtrfs_inode.h257 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
395 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) in btrfs_print_data_csum_error()
398 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
406 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()
227 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
Dextent-tree.c2278 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
2356 root->root_key.objectid || in check_committed_ref()
2449 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2451 key.offset, root->root_key.objectid, in __btrfs_mod_ref()
2465 generic_ref.real_root = root->root_key.objectid; in __btrfs_mod_ref()
2467 root->root_key.objectid, for_reloc); in __btrfs_mod_ref()
4190 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in find_free_extent()
4477 bool for_treelog = (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_reserve_extent()
4722 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
4726 btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, 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()
Ddisk-io.c1137 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
1140 root->root_key.objectid = objectid; in __setup_root()
1203 root->root_key.objectid = objectid; in btrfs_create_tree()
1204 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree()
1205 root->root_key.offset = 0; in btrfs_create_tree()
1265 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1266 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree()
1267 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1342 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1377 &root->root_item, &root->root_key); in read_tree_root_path()
[all …]
Dtransaction.c442 (unsigned long)root->root_key.objectid, in record_root_in_trans()
488 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
565 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1179 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1254 &root->root_key, in update_cowonly_root()
1425 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1446 &root->root_key, in commit_fs_roots()
1562 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1783 parent_root->root_key.objectid, in create_pending_snapshot()
2556 btrfs_debug(fs_info, "cleaner removing %llu", root->root_key.objectid); in btrfs_clean_one_deleted_snapshot()
Dctree.c164 if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) in add_root_to_dirty_list()
301 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
313 if ((owner == root->root_key.objectid || in update_ref_for_cow()
314 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
320 if (root->root_key.objectid == in update_ref_for_cow()
332 if (root->root_key.objectid == in update_ref_for_cow()
350 if (root->root_key.objectid == in update_ref_for_cow()
412 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
416 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block()
429 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
[all …]
Dqgroup.c1277 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
3066 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
3712 !is_fstree(root->root_key.objectid) || len == 0) in qgroup_reserve_data()
3827 btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, in qgroup_free_reserved_data()
3862 inode->root->root_key.objectid, in __btrfs_qgroup_release_data()
3955 !is_fstree(root->root_key.objectid) || num_bytes == 0) in btrfs_qgroup_reserve_meta()
3995 !is_fstree(root->root_key.objectid)) in btrfs_qgroup_free_meta_all_pertrans()
4001 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, in btrfs_qgroup_free_meta_all_pertrans()
4011 !is_fstree(root->root_key.objectid)) in __btrfs_qgroup_free_meta()
4022 btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, in __btrfs_qgroup_free_meta()
[all …]
Dfile-item.c473 if (BTRFS_I(inode)->root->root_key.objectid == in btrfs_lookup_bio_sums()
676 inode->root->root_key.objectid, in btrfs_csum_one_bio()
809 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_del_csums()
1109 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { in btrfs_csum_file_blocks()
1257 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
Dinode.c3233 btrfs_qgroup_free_refroot(fs_info, inode->root->root_key.objectid, in btrfs_finish_ordered_io()
3939 root->root_key.objectid, ret); in btrfs_read_locked_inode()
4293 objectid = inode->root->root_key.objectid; in btrfs_unlink_subvol()
4349 root->root_key.objectid, dir_ino, in btrfs_unlink_subvol()
4397 if (key.objectid == root->root_key.objectid) { in may_destroy_subvol()
4407 key.objectid = root->root_key.objectid; in may_destroy_subvol()
4420 if (key.objectid == root->root_key.objectid && in may_destroy_subvol()
4516 dest->root_key.objectid); in btrfs_delete_subvolume()
4524 root->root_key.objectid); in btrfs_delete_subvolume()
4577 dest->root_key.objectid); in btrfs_delete_subvolume()
[all …]
Dioctl.c681 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol()
2050 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
2063 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2461 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2636 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2734 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2852 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
3488 if (!is_fstree(new_root->root_key.objectid)) { in btrfs_ioctl_default_subvol()
3517 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
4401 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit()
[all …]
Dlocking.c97 btrfs_set_buffer_lockdep_class(root->root_key.objectid, in btrfs_maybe_reset_lockdep_class()
Dsend.c320 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
322 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
1213 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1215 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1225 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1227 if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) in __clone_root_cmp_sort()
1522 ino, root->root_key.objectid); in read_symlink()
2372 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2388 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
5014 sctx->send_root->root_key.objectid); in put_file_data()
[all …]
Dsuper.c1558 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1560 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1628 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
2381 BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; in btrfs_statfs()
2383 BTRFS_I(d_inode(dentry))->root->root_key.objectid; in btrfs_statfs()
Dfile.c162 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
737 update_refs = (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in btrfs_drop_extents()
870 root->root_key.objectid, in btrfs_drop_extents()
960 root->root_key.objectid, in btrfs_drop_extents()
1242 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, in btrfs_mark_extent_written()
1268 btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset, in btrfs_mark_extent_written()
2720 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()
Dctree.h1159 struct btrfs_key root_key; member
2283 return root->root_key.objectid; in btrfs_root_id()
3048 struct btrfs_key *root_key);
3908 return root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID; in btrfs_is_data_reloc_root()
Dbackref.c1579 .root_objectid = root->root_key.objectid,
2162 fs_root->root_key.objectid);
2811 cur->bytenr, level - 1, root->root_key.objectid,
Dreflink.c663 root_dst->root_key.objectid, in btrfs_extent_same()
Dtree-mod-log.c824 old = read_tree_block(fs_info, logical, root->root_key.objectid, in btrfs_get_old_root()
Dtree-log.c400 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
763 root->root_key.objectid, in replay_one_extent()
774 root->root_key.objectid, in replay_one_extent()
2974 &log->root_key, root_item); in update_log_root()
2977 &log->root_key, root_item); in update_log_root()
Dreada.c988 ret = reada_add_block(rc, start, &max_key, root->root_key.objectid, in btrfs_reada_add()
Dordered-data.c409 inode->root->root_key.objectid, in btrfs_mark_ordered_io_finished()
/fs/btrfs/tests/
Dqgroup-tests.c491 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
507 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()

12