Home
last modified time | relevance | path

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

/linux-4.4.14/fs/btrfs/
Droot-tree.c223 int btrfs_find_orphan_roots(struct btrfs_root *tree_root) in btrfs_find_orphan_roots() argument
234 if (tree_root->fs_info->sb->s_flags & MS_RDONLY) in btrfs_find_orphan_roots()
249 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
257 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots()
275 root = btrfs_read_fs_root(tree_root, &root_key); in btrfs_find_orphan_roots()
284 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
287 btrfs_std_error(tree_root->fs_info, err, in btrfs_find_orphan_roots()
292 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
294 btrfs_end_transaction(trans, tree_root); in btrfs_find_orphan_roots()
296 btrfs_std_error(tree_root->fs_info, err, in btrfs_find_orphan_roots()
[all …]
Ddisk-io.c1321 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
1331 __setup_root(tree_root->nodesize, tree_root->sectorsize, in btrfs_create_tree()
1332 tree_root->stripesize, root, fs_info, objectid); in btrfs_create_tree()
1377 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1400 struct btrfs_root *tree_root = fs_info->tree_root; in alloc_log_tree() local
1407 __setup_root(tree_root->nodesize, tree_root->sectorsize, in alloc_log_tree()
1408 tree_root->stripesize, root, fs_info, in alloc_log_tree()
1488 static struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument
1492 struct btrfs_fs_info *fs_info = tree_root->fs_info; in btrfs_read_tree_root()
1507 __setup_root(tree_root->nodesize, tree_root->sectorsize, in btrfs_read_tree_root()
[all …]
Dtransaction.c1074 struct btrfs_root *tree_root = root->fs_info->tree_root; in update_cowonly_root() local
1085 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1114 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1115 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1239 err = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1273 btrfs_btree_balance_dirty(info->tree_root); in btrfs_defrag_root()
1304 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1334 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1457 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot()
1468 ret = btrfs_add_root_ref(trans, tree_root, objectid, in create_pending_snapshot()
[all …]
Dtree-log.h63 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
Dsuper.c289 close_ctree(btrfs_sb(sb)->tree_root); in btrfs_put_super()
849 struct btrfs_root *root = fs_info->tree_root; in get_subvol_name_from_objectid()
984 struct btrfs_root *root = fs_info->tree_root; in get_default_subvol_objectid()
1071 close_ctree(fs_info->tree_root); in btrfs_fill_super()
1079 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
1121 struct btrfs_root *root = info->tree_root; in btrfs_show_options()
1612 struct btrfs_root *root = fs_info->tree_root; in btrfs_remount()
2022 ret = btrfs_calc_avail_data_space(fs_info->tree_root, &total_free_data); in btrfs_statfs()
2127 struct btrfs_root *root = btrfs_sb(sb)->tree_root; in btrfs_freeze()
Dexport.c172 root = root->fs_info->tree_root; in btrfs_get_parent()
253 root = root->fs_info->tree_root; in btrfs_get_name()
Dbtrfs_inode.h247 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
Ddisk-io.h68 struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root,
Dqgroup.c859 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
923 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
947 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
989 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_disable() local
1011 ret = btrfs_del_root(trans, tree_root, &quota_root->root_key); in btrfs_quota_disable()
1018 clean_tree_block(trans, tree_root->fs_info, quota_root->node); in btrfs_quota_disable()
Dreada.c696 dev->reada_next = re->logical + fs_info->tree_root->nodesize; in reada_start_machine_dev()
852 re->logical, fs_info->tree_root->nodesize, in dump_devs()
887 re->logical, fs_info->tree_root->nodesize, in dump_devs()
Dextent-tree.c520 fs_info->tree_root->nodesize; in caching_thread()
2866 async->root = root->fs_info->tree_root; in btrfs_async_run_delayed_refs()
2914 root = root->fs_info->tree_root; in btrfs_run_delayed_refs()
3319 struct btrfs_root *root = block_group->fs_info->tree_root; in cache_save_setup()
5368 fs_info->tree_root->block_rsv = &fs_info->global_block_rsv; in init_global_block_rsv()
8787 struct btrfs_root *tree_root = root->fs_info->tree_root; in btrfs_drop_snapshot() local
8811 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
8912 if (btrfs_should_end_transaction(trans, tree_root) || in btrfs_drop_snapshot()
8914 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot()
8918 btrfs_abort_transaction(trans, tree_root, ret); in btrfs_drop_snapshot()
[all …]
Dioctl.c411 ret = btrfs_trim_fs(fs_info->tree_root, &range); in btrfs_ioctl_fitrim()
456 ret = btrfs_find_free_objectid(root->fs_info->tree_root, &objectid); in create_subvol()
549 ret = btrfs_insert_root(trans, root->fs_info->tree_root, &key, in create_subvol()
596 ret = btrfs_add_root_ref(trans, root->fs_info->tree_root, in create_subvol()
1844 ret = btrfs_update_root(trans, root->fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
1876 di = btrfs_lookup_dir_item(NULL, root->fs_info->tree_root, path, in may_destroy_subvol()
1893 ret = btrfs_search_slot(NULL, root->fs_info->tree_root, in may_destroy_subvol()
2490 root->fs_info->tree_root, in btrfs_ioctl_snap_destroy()
4120 di = btrfs_lookup_dir_item(trans, root->fs_info->tree_root, path, in btrfs_ioctl_default_subvol()
4880 trans = btrfs_start_transaction(root->fs_info->tree_root, 2); in btrfs_ioctl_quota_ctl()
[all …]
Ddev-replace.c466 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing()
693 struct btrfs_root *root = fs_info->tree_root; in __btrfs_dev_replace_cancel()
Dctree.h415 __le64 tree_root; member
1425 struct btrfs_root *tree_root; member
2964 tree_root, 64);
3734 kfree(fs_info->tree_root); in free_fs_info()
3754 int btrfs_find_root_ref(struct btrfs_root *tree_root,
3758 struct btrfs_root *tree_root,
3762 struct btrfs_root *tree_root,
3777 int btrfs_find_orphan_roots(struct btrfs_root *tree_root);
Drelocation.c1426 ret = btrfs_insert_root(trans, root->fs_info->tree_root,
1431 reloc_root = btrfs_read_fs_root(root->fs_info->tree_root, &root_key);
1503 ret = btrfs_update_root(trans, root->fs_info->tree_root,
3444 struct btrfs_root *root = fs_info->tree_root;
4231 inode = lookup_free_space_inode(fs_info->tree_root, rc->block_group,
4307 trans = btrfs_start_transaction(root->fs_info->tree_root, 0);
4315 ret = btrfs_update_root(trans, root->fs_info->tree_root,
4318 err = btrfs_end_transaction(trans, root->fs_info->tree_root);
4353 ret = btrfs_search_slot(NULL, root->fs_info->tree_root, &key,
Ddir-item.c169 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item()
Dinode.c1776 root != root->fs_info->tree_root) in btrfs_clear_bit_hook()
2914 BUG_ON(root == root->fs_info->tree_root); in btrfs_finish_ordered_io()
2950 if (root != root->fs_info->tree_root) in btrfs_finish_ordered_io()
3189 ret = btrfs_del_orphan_item(trans, root->fs_info->tree_root, in btrfs_orphan_commit_root()
3283 ret = btrfs_insert_orphan_item(trans, root->fs_info->tree_root, in btrfs_orphan_add()
3409 if (ret == -ESTALE && root == root->fs_info->tree_root) { in btrfs_orphan_cleanup()
3766 if (root == root->fs_info->tree_root) in btrfs_read_locked_inode()
4124 ret = btrfs_del_root_ref(trans, root->fs_info->tree_root, in btrfs_unlink_subvol()
4324 root == root->fs_info->tree_root) in btrfs_truncate_inode_items()
4514 root == root->fs_info->tree_root)) { in btrfs_truncate_inode_items()
[all …]
Dvolumes.c3632 ret = del_balance_item(fs_info->tree_root); in __cancel_balance()
3767 ret = insert_balance_item(fs_info->tree_root, bctl); in btrfs_balance()
3847 if (btrfs_test_opt(fs_info->tree_root, SKIP_BALANCE)) { in btrfs_resume_balance_async()
3874 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance()
3987 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
4185 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local
4194 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
4202 btrfs_abort_transaction(trans, tree_root, ret); in btrfs_create_uuid_tree()
4208 ret = btrfs_commit_transaction(trans, tree_root); in btrfs_create_uuid_tree()
Dfree-space-cache.c830 struct btrfs_root *root = fs_info->tree_root; in load_free_space_cache()
869 ret = __load_free_space_cache(fs_info->tree_root, inode, ctl, in load_free_space_cache()
1156 root = root->fs_info->tree_root; in btrfs_wait_cache_io()
1369 root = root->fs_info->tree_root; in btrfs_write_out_cache()
Dtree-log.c2933 ret = write_ctree_super(trans, root->fs_info->tree_root, 1); in btrfs_sync_log()
5453 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
5555 ret = btrfs_commit_transaction(trans, fs_info->tree_root); in btrfs_recover_log_trees()
5567 btrfs_end_transaction(wc.trans, fs_info->tree_root); in btrfs_recover_log_trees()
Dfile.c375 if (!__need_auto_defrag(fs_info->tree_root)) in btrfs_run_defrag_inodes()
726 root == root->fs_info->tree_root); in __btrfs_drop_extents()
Dbackref.c535 eb = read_tree_block(fs_info->tree_root, ref->wanted_disk_byte, in __add_missing_keys()
Dextent_io.c4815 len = fs_info->tree_root->nodesize; in alloc_dummy_extent_buffer()
4976 unsigned long len = fs_info->tree_root->nodesize; in alloc_extent_buffer()
Dctree.c1403 BTRFS_NODEPTRS_PER_BLOCK(fs_info->tree_root)); in tree_mod_log_rewind()
Dsend.c2328 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
/linux-4.4.14/fs/btrfs/tests/
Dqgroup-tests.c471 root->fs_info->tree_root = root; in btrfs_test_qgroups()