Home
last modified time | relevance | path

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

12

/Linux-v4.19/fs/btrfs/
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()
212 struct btrfs_key root_key; in btrfs_find_orphan_roots() local
225 root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_find_orphan_roots()
226 root_key.offset = (u64)-1; in btrfs_find_orphan_roots()
252 root_key.objectid = key.offset; in btrfs_find_orphan_roots()
262 root = btrfs_lookup_fs_root(fs_info, root_key.objectid); in btrfs_find_orphan_roots()
271 root = btrfs_read_fs_root(tree_root, &root_key); in btrfs_find_orphan_roots()
288 root_key.objectid); in btrfs_find_orphan_roots()
Dinode-map.c165 root->root_key.objectid); in start_caching()
394 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache()
395 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache()
396 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
551 root->root_key.objectid); in btrfs_find_free_objectid()
Drelocation.c1345 struct btrfs_key root_key; in create_reloc_root() local
1351 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
1352 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root()
1353 root_key.offset = objectid; in create_reloc_root()
1355 if (root->root_key.objectid == objectid) { in create_reloc_root()
1390 if (root->root_key.objectid == objectid) { in create_reloc_root()
1401 &root_key, root_item); in create_reloc_root()
1405 reloc_root = btrfs_read_fs_root(fs_info->tree_root, &root_key); in create_reloc_root()
1432 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
1440 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
[all …]
Dexport.c172 key.objectid = root->root_key.objectid; in btrfs_get_parent()
251 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_get_name()
Dtransaction.c323 (unsigned long)root->root_key.objectid, in record_root_in_trans()
369 (unsigned long)root->root_key.objectid, in btrfs_add_dropped_root()
445 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in need_reserve_reloc_root()
1034 ASSERT(log_root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_wait_tree_log_extents()
1109 &root->root_key, in update_cowonly_root()
1242 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1263 &root->root_key, in commit_fs_roots()
1358 ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, in qgroup_account_snapshot()
1577 parent_root->root_key.objectid, in create_pending_snapshot()
Ddisk-io.c1197 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
1204 root->root_key.objectid = objectid; in __setup_root()
1256 root->root_key.objectid = objectid; in btrfs_create_tree()
1257 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_create_tree()
1258 root->root_key.offset = 0; in btrfs_create_tree()
1321 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1322 root->root_key.type = BTRFS_ROOT_ITEM_KEY; in alloc_log_tree()
1323 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
1373 log_root->root_key.offset = root->root_key.objectid; in btrfs_add_log_tree()
1416 &root->root_item, &root->root_key); in btrfs_read_tree_root()
[all …]
Dinode.c1028 if (root->root_key.objectid == in cow_file_range()
1503 if (root->root_key.objectid == in run_delalloc_nocow()
1856 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_clear_bit_hook()
2011 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_submit_bio_hook()
2380 if (BTRFS_I(inode)->root->root_key.objectid == root_id && in record_one_backref()
3237 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && in btrfs_readpage_end_io_hook()
3418 if (dead_root->root_key.objectid == in btrfs_orphan_cleanup()
3720 root->root_key.objectid, ret); in btrfs_read_locked_inode()
3858 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID in btrfs_update_inode()
4095 ret = btrfs_del_root_ref(trans, objectid, root->root_key.objectid, in btrfs_unlink_subvol()
[all …]
Dextent-tree.c3057 if (data_ref->root != root->root_key.objectid || in check_delayed_ref()
3127 root->root_key.objectid || in check_committed_ref()
3167 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_cross_ref_exist()
6988 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
6992 root->root_key.objectid, in btrfs_free_tree_block()
6997 root->root_key.objectid, in btrfs_free_tree_block()
7008 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { in btrfs_free_tree_block()
7034 root->root_key.objectid); in btrfs_free_tree_block()
8054 BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); in btrfs_alloc_reserved_file_extent()
8057 root->root_key.objectid, owner, offset, in btrfs_alloc_reserved_file_extent()
[all …]
Dctree.c938 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
950 if ((owner == root->root_key.objectid || in update_ref_for_cow()
951 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
957 if (root->root_key.objectid == in update_ref_for_cow()
969 if (root->root_key.objectid == in update_ref_for_cow()
989 if (root->root_key.objectid == in update_ref_for_cow()
1050 if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) in __btrfs_cow_block()
1054 root->root_key.objectid, &disk_key, level, in __btrfs_cow_block()
1067 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
1070 btrfs_set_header_owner(cow, root->root_key.objectid); in __btrfs_cow_block()
[all …]
Dbackref.c508 struct btrfs_key root_key; in resolve_indirect_ref() local
515 root_key.objectid = ref->root_id; in resolve_indirect_ref()
516 root_key.type = BTRFS_ROOT_ITEM_KEY; in resolve_indirect_ref()
517 root_key.offset = (u64)-1; in resolve_indirect_ref()
521 root = btrfs_get_fs_root(fs_info, &root_key, false); in resolve_indirect_ref()
Dioctl.c701 ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, in create_subvol()
1945 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
1958 &root->root_key, &root->root_item); in btrfs_ioctl_subvol_setflags()
2352 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2527 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2625 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2743 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
4108 root->root_key.objectid, in btrfs_clone()
4427 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); in btrfs_ioctl_default_subvol()
5312 qgroupid = root->root_key.objectid; in btrfs_ioctl_qgroup_limit()
[all …]
Dprops.c270 root->root_key.objectid, ret); in inode_prop_iterator()
Dfile.c158 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
906 root->root_key.objectid, in __btrfs_drop_extents()
990 root->root_key.objectid, in __btrfs_drop_extents()
1283 0, root->root_key.objectid, in btrfs_mark_extent_written()
1317 0, root->root_key.objectid, in btrfs_mark_extent_written()
1337 0, root->root_key.objectid, in btrfs_mark_extent_written()
Dfile-item.c236 if (BTRFS_I(inode)->root->root_key.objectid == in __btrfs_lookup_bio_sums()
993 root->root_key.objectid); in btrfs_extent_item_to_extent_map()
Dscrub.c647 struct btrfs_key root_key; in scrub_print_warning_inode() local
650 root_key.objectid = root; in scrub_print_warning_inode()
651 root_key.type = BTRFS_ROOT_ITEM_KEY; in scrub_print_warning_inode()
652 root_key.offset = (u64)-1; in scrub_print_warning_inode()
653 local_root = btrfs_read_fs_root_no_name(fs_info, &root_key); in scrub_print_warning_inode()
Dtree-log.c341 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
704 0, root->root_key.objectid, in replay_one_extent()
714 root->root_key.objectid, in replay_one_extent()
2828 WARN_ON(log->root_key.objectid != in walk_log_tree()
2855 &log->root_key, &log->root_item); in update_log_root()
2858 &log->root_key, &log->root_item); in update_log_root()
Dsuper.c1364 BTRFS_I(d_inode(dentry))->root->root_key.objectid); in btrfs_show_options()
1429 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
Dsend.c292 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
294 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
1491 ino, root->root_key.objectid); in read_symlink()
6592 root->send_in_progress, root->root_key.objectid); in btrfs_root_dec_send_in_progress()
Dqgroup.c1090 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
2477 u64 ref_root = root->root_key.objectid; in qgroup_reserve()
Dfree-space-tree.c1239 ret = btrfs_del_root(trans, &free_space_root->root_key); in btrfs_clear_free_space_tree()
Dfree-space-cache.c3490 root->root_key.objectid); in load_free_ino_cache()
3532 root->root_key.objectid); in btrfs_write_out_ino_cache()
Dctree.h1173 struct btrfs_key root_key; member
3004 struct btrfs_key *root_key);
/Linux-v4.19/include/trace/events/
Dbtrfs.h121 __entry->root_objectid = root->root_key.objectid;
153 BTRFS_I(inode)->root->root_key.objectid;
230 __entry->root_objectid = root->root_key.objectid;
471 BTRFS_I(inode)->root->root_key.objectid;
557 BTRFS_I(inode)->root->root_key.objectid;
603 BTRFS_I(page->mapping->host)->root->root_key.objectid;
636 BTRFS_I(inode)->root->root_key.objectid;
920 __entry->root_objectid = fs_info->chunk_root->root_key.objectid;
965 __entry->root_objectid = root->root_key.objectid;
/Linux-v4.19/fs/btrfs/tests/
Dqgroup-tests.c503 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
518 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
/Linux-v4.19/fs/reiserfs/
Dreiserfs.h1630 extern struct reiserfs_key root_key;

12