/linux-4.4.14/fs/btrfs/ |
H A D | root-tree.c | 74 * root_key: the reak key of the tree we look for 84 struct btrfs_key *root_key) btrfs_find_root() 118 if (root_key) btrfs_find_root() 119 memcpy(root_key, &found_key, sizeof(found_key)); btrfs_find_root() 228 struct btrfs_key root_key; btrfs_find_orphan_roots() local 245 root_key.type = BTRFS_ROOT_ITEM_KEY; btrfs_find_orphan_roots() 246 root_key.offset = (u64)-1; btrfs_find_orphan_roots() 272 root_key.objectid = key.offset; btrfs_find_orphan_roots() 275 root = btrfs_read_fs_root(tree_root, &root_key); btrfs_find_orphan_roots() 293 root_key.objectid); btrfs_find_orphan_roots() 82 btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key, struct btrfs_path *path, struct btrfs_root_item *root_item, struct btrfs_key *root_key) btrfs_find_root() argument
|
H A D | inode-map.c | 178 root->root_key.objectid); start_caching() 406 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && btrfs_save_ino_cache() 407 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || btrfs_save_ino_cache() 408 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) btrfs_save_ino_cache()
|
H A D | export.c | 169 key.objectid = root->root_key.objectid; btrfs_get_parent() 250 key.objectid = BTRFS_I(inode)->root->root_key.objectid; btrfs_get_name()
|
H A D | relocation.c | 1372 struct btrfs_key root_key; create_reloc_root() local 1379 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; create_reloc_root() 1380 root_key.type = BTRFS_ROOT_ITEM_KEY; create_reloc_root() 1381 root_key.offset = objectid; create_reloc_root() 1383 if (root->root_key.objectid == objectid) { create_reloc_root() 1410 if (root->root_key.objectid == objectid) { create_reloc_root() 1427 &root_key, root_item); create_reloc_root() 1431 reloc_root = btrfs_read_fs_root(root->fs_info->tree_root, &root_key); create_reloc_root() 1457 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) btrfs_init_reloc_root() 1465 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); btrfs_init_reloc_root() 1504 &reloc_root->root_key, root_item); btrfs_update_reloc_root() 1649 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) replace_file_extents() 1675 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { replace_file_extents() 1780 BUG_ON(src->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); replace_path() 1781 BUG_ON(dest->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID); replace_path() 1903 src->root_key.objectid, level - 1, 0); replace_path() 1906 0, dest->root_key.objectid, level - 1, replace_path() 1912 src->root_key.objectid, level - 1, 0); replace_path() 1916 0, dest->root_key.objectid, level - 1, replace_path() 2314 reloc_root->root_key.offset); prepare_to_merge() 2381 reloc_root->root_key.offset); merge_reloc_roots() 2402 objectid = reloc_root->root_key.offset; merge_reloc_roots() 2453 root = read_fs_root(reloc_root->fs_info, reloc_root->root_key.offset); record_reloc_root_in_trans() 2478 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { select_reloc_root() 2543 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) select_one_root() 4316 &root->root_key, &root->root_item); mark_garbage_root() 4382 reloc_root->root_key.offset); btrfs_recover_relocation() 4438 reloc_root->root_key.offset); btrfs_recover_relocation() 4548 root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID); btrfs_reloc_cow_block() 4550 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { btrfs_reloc_cow_block() 4560 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID && btrfs_reloc_cow_block() 4653 new_root->root_key.objectid); btrfs_reloc_post_snapshot()
|
H A D | ctree.c | 996 * tree (btrfs_header_owner(buf) == root->root_key.objectid), update_ref_for_cow() 1000 * (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID), update_ref_for_cow() 1019 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || update_ref_for_cow() 1031 if ((owner == root->root_key.objectid || update_ref_for_cow() 1032 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && update_ref_for_cow() 1037 if (root->root_key.objectid == update_ref_for_cow() 1047 if (root->root_key.objectid == update_ref_for_cow() 1066 if (root->root_key.objectid == update_ref_for_cow() 1124 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { __btrfs_cow_block() 1133 root->root_key.objectid, &disk_key, level, __btrfs_cow_block() 1146 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) __btrfs_cow_block() 1149 btrfs_set_header_owner(cow, root->root_key.objectid); __btrfs_cow_block() 1170 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || __btrfs_cow_block() 1185 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) __btrfs_cow_block() 1524 !(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID && should_cow_block() 3350 c = btrfs_alloc_tree_block(trans, root, 0, root->root_key.objectid, insert_new_root() 3363 btrfs_set_header_owner(c, root->root_key.objectid); insert_new_root() 3489 split = btrfs_alloc_tree_block(trans, root, 0, root->root_key.objectid, split_node() 3501 btrfs_set_header_owner(split, root->root_key.objectid); split_node() 4269 right = btrfs_alloc_tree_block(trans, root, 0, root->root_key.objectid, split_leaf() 4280 btrfs_set_header_owner(right, root->root_key.objectid); split_leaf()
|
H A D | transaction.c | 322 (unsigned long)root->root_key.objectid, record_root_in_trans() 367 (unsigned long)root->root_key.objectid, btrfs_add_dropped_root() 443 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || need_reserve_reloc_root() 999 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { btrfs_wait_marked_extents() 1086 &root->root_key, update_cowonly_root() 1218 (unsigned long)root->root_key.objectid, commit_fs_roots() 1240 &root->root_key, commit_fs_roots() 1469 parent_root->root_key.objectid, create_pending_snapshot() 1549 root->root_key.objectid, create_pending_snapshot()
|
H A D | ioctl.c | 597 objectid, root->root_key.objectid, create_subvol() 1832 root->root_key.objectid); btrfs_ioctl_subvol_setflags() 1845 &root->root_key, &root->root_item); btrfs_ioctl_subvol_setflags() 1880 if (key.objectid == root->root_key.objectid) { may_destroy_subvol() 1889 key.objectid = root->root_key.objectid; may_destroy_subvol() 1903 if (key.objectid == root->root_key.objectid && may_destroy_subvol() 2306 args->treeid = BTRFS_I(inode)->root->root_key.objectid; btrfs_ioctl_ino_lookup() 2442 dest->root_key.objectid); btrfs_ioctl_snap_destroy() 2472 dest->root_key.objectid, btrfs_ioctl_snap_destroy() 2491 dest->root_key.objectid); btrfs_ioctl_snap_destroy() 2501 dest->root_key.objectid); btrfs_ioctl_snap_destroy() 2511 dest->root_key.objectid); btrfs_ioctl_snap_destroy() 3741 root->root_key.objectid, btrfs_clone() 4131 btrfs_cpu_key_to_disk(&disk_key, &new_root->root_key); btrfs_ioctl_default_subvol() 5042 qgroupid = root->root_key.objectid; btrfs_ioctl_qgroup_limit() 5179 root->root_key.objectid); _btrfs_ioctl_set_received_subvol() 5189 &root->root_key, &root->root_item); _btrfs_ioctl_set_received_subvol() 5198 root->root_key.objectid); _btrfs_ioctl_set_received_subvol()
|
H A D | disk-io.c | 1278 memset(&root->root_key, 0, sizeof(root->root_key)); __setup_root() 1285 root->root_key.objectid = objectid; __setup_root() 1333 root->root_key.objectid = objectid; btrfs_create_tree() 1334 root->root_key.type = BTRFS_ROOT_ITEM_KEY; btrfs_create_tree() 1335 root->root_key.offset = 0; btrfs_create_tree() 1411 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; alloc_log_tree() 1412 root->root_key.type = BTRFS_ROOT_ITEM_KEY; alloc_log_tree() 1413 root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; alloc_log_tree() 1469 log_root->root_key.offset = root->root_key.objectid; btrfs_add_log_tree() 1511 &root->root_item, &root->root_key); btrfs_read_tree_root() 1550 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { btrfs_read_fs_root() 1633 (unsigned long)root->root_key.objectid, btrfs_insert_fs_root() 3696 (unsigned long)root->root_key.objectid); btrfs_drop_and_free_fs_root() 3753 root_objectid = gang[ret - 1]->root_key.objectid + 1; btrfs_cleanup_fs_roots() 3769 root_objectid = gang[i]->root_key.objectid; btrfs_cleanup_fs_roots()
|
H A D | props.c | 282 root->root_key.objectid, ret); inode_prop_iterator()
|
H A D | inode.c | 1027 if (root->root_key.objectid == cow_file_range() 1452 if (root->root_key.objectid == run_delalloc_nocow() 1783 if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID btrfs_clear_bit_hook() 1909 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) btrfs_submit_bio_hook() 2135 root->root_key.objectid, insert_reserved_file_extent() 2261 if (BTRFS_I(inode)->root->root_key.objectid == root_id && record_one_backref() 3097 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && btrfs_readpage_end_io_hook() 3190 root->root_key.objectid); btrfs_orphan_commit_root() 3284 root->root_key.objectid); btrfs_orphan_add() 3428 if (dead_root->root_key.objectid == btrfs_orphan_cleanup() 3750 root->root_key.objectid, ret); btrfs_read_locked_inode() 3892 && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID btrfs_update_inode() 4125 objectid, root->root_key.objectid, btrfs_unlink_subvol() 4585 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) btrfs_truncate_inode_items() 5150 root->root_key.objectid != BTRFS_ROOT_TREE_OBJECTID) || btrfs_evict_inode() 5172 root->root_key.objectid != BTRFS_ROOT_TREE_OBJECTID); btrfs_evict_inode() 5295 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID)) btrfs_evict_inode() 5367 key.objectid = BTRFS_I(dir)->root->root_key.objectid; fixup_tree_root_location() 5836 location.objectid == root->root_key.objectid) { btrfs_real_readdir() 6239 btrfs_ino(inode), root->root_key.objectid, ret); btrfs_new_inode() 6275 memcpy(&key, &BTRFS_I(inode)->root->root_key, sizeof(key)); btrfs_add_link() 6284 key.objectid, root->root_key.objectid, btrfs_add_link() 6319 key.objectid, root->root_key.objectid, btrfs_add_link() 9021 new_root->root_key.objectid, err); btrfs_create_subvol_root() 9361 root_objectid = BTRFS_I(old_inode)->root->root_key.objectid; btrfs_rename()
|
H A D | backref.c | 345 struct btrfs_key root_key; __resolve_indirect_ref() local 352 root_key.objectid = ref->root_id; __resolve_indirect_ref() 353 root_key.type = BTRFS_ROOT_ITEM_KEY; __resolve_indirect_ref() 354 root_key.offset = (u64)-1; __resolve_indirect_ref() 358 root = btrfs_get_fs_root(fs_info, &root_key, false); __resolve_indirect_ref()
|
H A D | extent-tree.c | 1020 * (root_key.objectid, inode objectid, offset in file, 1) 3053 if (data_ref->root != root->root_key.objectid || check_delayed_ref() 3126 root->root_key.objectid || check_committed_ref() 3167 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) btrfs_cross_ref_exist() 6760 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { btrfs_free_tree_block() 6763 parent, root->root_key.objectid, btrfs_free_tree_block() 6775 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { btrfs_free_tree_block() 6801 root->root_key.objectid); btrfs_free_tree_block() 7834 btrfs_set_buffer_lockdep_class(root->root_key.objectid, buf, level); btrfs_init_new_buffer() 7842 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { btrfs_init_new_buffer() 8074 generation <= root->root_key.offset) reada_walk_down() 8094 generation <= root->root_key.offset) reada_walk_down() 8372 btrfs_header_owner(eb) != root->root_key.objectid) walk_down_proc() 8466 generation <= root->root_key.offset) { do_walk_down() 8479 btrfs_set_buffer_lockdep_class(root->root_key.objectid, next, do_walk_down() 8508 generation <= root->root_key.offset) do_walk_down() 8563 BUG_ON(root->root_key.objectid != do_walk_down() 8580 root->root_key.objectid, level - 1, 0); do_walk_down() 8686 BUG_ON(root->root_key.objectid != walk_up_proc() 8692 BUG_ON(root->root_key.objectid != walk_up_proc() 8915 &root->root_key, btrfs_drop_snapshot() 8943 ret = btrfs_del_root(trans, tree_root, &root->root_key); btrfs_drop_snapshot() 8949 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { btrfs_drop_snapshot() 8950 ret = btrfs_find_root(tree_root, &root->root_key, path, btrfs_drop_snapshot() 8963 root->root_key.objectid); btrfs_drop_snapshot() 9013 BUG_ON(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); btrfs_drop_subtree()
|
H A D | file.c | 172 defrag->root = root->root_key.objectid; btrfs_add_inode_defrag() 856 root->root_key.objectid, __btrfs_drop_extents() 934 root->root_key.objectid, __btrfs_drop_extents() 1214 root->root_key.objectid, btrfs_mark_extent_written() 1241 0, root->root_key.objectid, btrfs_mark_extent_written() 1258 0, root->root_key.objectid, btrfs_mark_extent_written()
|
H A D | file-item.c | 243 if (BTRFS_I(inode)->root->root_key.objectid == __btrfs_lookup_bio_sums() 951 root->root_key.objectid); btrfs_extent_item_to_extent_map()
|
H A D | scrub.c | 530 struct btrfs_key root_key; scrub_print_warning_inode() local 533 root_key.objectid = root; scrub_print_warning_inode() 534 root_key.type = BTRFS_ROOT_ITEM_KEY; scrub_print_warning_inode() 535 root_key.offset = (u64)-1; scrub_print_warning_inode() 536 local_root = btrfs_read_fs_root_no_name(fs_info, &root_key); scrub_print_warning_inode()
|
H A D | tree-log.c | 349 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) overwrite_item() 695 0, root->root_key.objectid, replay_one_extent() 705 root, root->root_key.objectid, replay_one_extent() 2606 WARN_ON(log->root_key.objectid != walk_log_tree() 2632 &log->root_key, &log->root_item); update_log_root() 2635 &log->root_key, &log->root_item); update_log_root()
|
H A D | qgroup.c | 1011 ret = btrfs_del_root(trans, tree_root, "a_root->root_key); btrfs_quota_disable() 2042 u64 ref_root = root->root_key.objectid; qgroup_reserve()
|
H A D | super.c | 1206 BTRFS_I(d_inode(dentry))->root->root_key.objectid); btrfs_show_options() 1343 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; mount_subvol()
|
H A D | free-space-cache.c | 3507 root->root_key.objectid); load_free_ino_cache() 3548 root->root_key.objectid); btrfs_write_out_ino_cache()
|
H A D | volumes.c | 4836 chunk_root->root_key.objectid, btrfs_finish_chunk_alloc() 4856 btrfs_set_stack_chunk_owner(chunk, extent_root->root_key.objectid); btrfs_finish_chunk_alloc() 6470 btrfs_set_buffer_lockdep_class(root->root_key.objectid, sb, 0); btrfs_read_sys_array()
|
H A D | ctree.h | 1860 struct btrfs_key root_key; member in struct:btrfs_root 3776 struct btrfs_key *root_key);
|
H A D | send.c | 1483 ino, root->root_key.objectid); read_symlink() 5925 root->send_in_progress, root->root_key.objectid); btrfs_root_dec_send_in_progress()
|
/linux-4.4.14/include/trace/events/ |
H A D | btrfs.h | 82 __entry->root_objectid = root->root_key.objectid; 114 BTRFS_I(inode)->root->root_key.objectid; 190 __entry->root_objectid = root->root_key.objectid; 259 BTRFS_I(inode)->root->root_key.objectid; 338 BTRFS_I(inode)->root->root_key.objectid; 384 BTRFS_I(page->mapping->host)->root->root_key.objectid; 416 BTRFS_I(inode)->root->root_key.objectid; 655 __entry->root_objectid = root->root_key.objectid; 700 __entry->root_objectid = root->root_key.objectid; 759 __entry->root_objectid = root->root_key.objectid; 799 __entry->root_objectid = root->root_key.objectid; 829 __entry->root_objectid = root->root_key.objectid;
|
/linux-4.4.14/fs/btrfs/tests/ |
H A D | qgroup-tests.c | 496 tmp_root->root_key.objectid = 5; btrfs_test_qgroups() 511 tmp_root->root_key.objectid = 256; btrfs_test_qgroups()
|
/linux-4.4.14/fs/reiserfs/ |
H A D | reiserfs.h | 1630 extern struct reiserfs_key root_key;
|