Home
last modified time | relevance | path

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

/linux-4.1.27/fs/btrfs/
Droot-tree.c222 int btrfs_find_orphan_roots(struct btrfs_root *tree_root) in btrfs_find_orphan_roots() argument
233 if (tree_root->fs_info->sb->s_flags & MS_RDONLY) in btrfs_find_orphan_roots()
248 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
256 ret = btrfs_next_leaf(tree_root, path); in btrfs_find_orphan_roots()
274 root = btrfs_read_fs_root(tree_root, &root_key); in btrfs_find_orphan_roots()
283 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
286 btrfs_error(tree_root->fs_info, err, in btrfs_find_orphan_roots()
291 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
293 btrfs_end_transaction(trans, tree_root); in btrfs_find_orphan_roots()
295 btrfs_error(tree_root->fs_info, err, in btrfs_find_orphan_roots()
[all …]
Ddisk-io.c1312 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_tree() local
1322 __setup_root(tree_root->nodesize, tree_root->sectorsize, in btrfs_create_tree()
1323 tree_root->stripesize, root, fs_info, objectid); in btrfs_create_tree()
1368 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1391 struct btrfs_root *tree_root = fs_info->tree_root; in alloc_log_tree() local
1398 __setup_root(tree_root->nodesize, tree_root->sectorsize, in alloc_log_tree()
1399 tree_root->stripesize, root, fs_info, in alloc_log_tree()
1479 static struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root, in btrfs_read_tree_root() argument
1483 struct btrfs_fs_info *fs_info = tree_root->fs_info; in btrfs_read_tree_root()
1498 __setup_root(tree_root->nodesize, tree_root->sectorsize, in btrfs_read_tree_root()
[all …]
Dtransaction.c1030 struct btrfs_root *tree_root = root->fs_info->tree_root; in update_cowonly_root() local
1041 ret = btrfs_update_root(trans, tree_root, in update_cowonly_root()
1070 eb = btrfs_lock_root_node(fs_info->tree_root); in commit_cowonly_roots()
1071 ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, in commit_cowonly_roots()
1195 err = btrfs_update_root(trans, fs_info->tree_root, in commit_fs_roots()
1228 btrfs_btree_balance_dirty(info->tree_root); in btrfs_defrag_root()
1259 struct btrfs_root *tree_root = fs_info->tree_root; in create_pending_snapshot() local
1289 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1425 ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); in create_pending_snapshot()
1436 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);
Dexport.c172 root = root->fs_info->tree_root; in btrfs_get_parent()
253 root = root->fs_info->tree_root; in btrfs_get_name()
Dsuper.c311 close_ctree(btrfs_sb(sb)->tree_root); in btrfs_put_super()
848 struct btrfs_root *root = fs_info->tree_root; in get_default_root()
983 close_ctree(fs_info->tree_root); in btrfs_fill_super()
991 struct btrfs_root *root = fs_info->tree_root; in btrfs_sync_fs()
1033 struct btrfs_root *root = info->tree_root; in btrfs_show_options()
1487 struct btrfs_root *root = fs_info->tree_root; in btrfs_remount()
1888 ret = btrfs_calc_avail_data_space(fs_info->tree_root, &total_free_data); in btrfs_statfs()
1993 struct btrfs_root *root = btrfs_sb(sb)->tree_root; in btrfs_freeze()
Dbtrfs_inode.h251 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
Ddisk-io.h66 struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root,
Dextent-tree.c489 fs_info->tree_root->nodesize; in caching_thread()
2762 async->root = root->fs_info->tree_root; in btrfs_async_run_delayed_refs()
2809 root = root->fs_info->tree_root; in btrfs_run_delayed_refs()
3221 struct btrfs_root *root = block_group->fs_info->tree_root; in cache_save_setup()
5160 fs_info->tree_root->block_rsv = &fs_info->global_block_rsv; in init_global_block_rsv()
8406 struct btrfs_root *tree_root = root->fs_info->tree_root; in btrfs_drop_snapshot() local
8430 trans = btrfs_start_transaction(tree_root, 0); in btrfs_drop_snapshot()
8531 if (btrfs_should_end_transaction(trans, tree_root) || in btrfs_drop_snapshot()
8533 ret = btrfs_update_root(trans, tree_root, in btrfs_drop_snapshot()
8537 btrfs_abort_transaction(trans, tree_root, ret); in btrfs_drop_snapshot()
[all …]
Dqgroup.c827 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_enable() local
891 ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); in btrfs_quota_enable()
915 ret = btrfs_next_item(tree_root, path); in btrfs_quota_enable()
957 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_quota_disable() local
978 ret = btrfs_del_root(trans, tree_root, &quota_root->root_key); in btrfs_quota_disable()
985 clean_tree_block(trans, tree_root->fs_info, quota_root->node); in btrfs_quota_disable()
Dreada.c694 dev->reada_next = re->logical + fs_info->tree_root->nodesize; in reada_start_machine_dev()
850 re->logical, fs_info->tree_root->nodesize, in dump_devs()
885 re->logical, fs_info->tree_root->nodesize, in dump_devs()
Dioctl.c410 ret = btrfs_trim_fs(fs_info->tree_root, &range); in btrfs_ioctl_fitrim()
455 ret = btrfs_find_free_objectid(root->fs_info->tree_root, &objectid); in create_subvol()
548 ret = btrfs_insert_root(trans, root->fs_info->tree_root, &key, in create_subvol()
595 ret = btrfs_add_root_ref(trans, root->fs_info->tree_root, in create_subvol()
1835 ret = btrfs_update_root(trans, root->fs_info->tree_root, in btrfs_ioctl_subvol_setflags()
1867 di = btrfs_lookup_dir_item(NULL, root->fs_info->tree_root, path, in may_destroy_subvol()
1884 ret = btrfs_search_slot(NULL, root->fs_info->tree_root, in may_destroy_subvol()
2463 root->fs_info->tree_root, in btrfs_ioctl_snap_destroy()
3955 di = btrfs_lookup_dir_item(trans, root->fs_info->tree_root, path, in btrfs_ioctl_default_subvol()
4715 trans = btrfs_start_transaction(root->fs_info->tree_root, 2); in btrfs_ioctl_quota_ctl()
[all …]
Dctree.h415 __le64 tree_root; member
1391 struct btrfs_root *tree_root; member
2920 tree_root, 64);
3676 kfree(fs_info->tree_root); in free_fs_info()
3696 int btrfs_find_root_ref(struct btrfs_root *tree_root,
3700 struct btrfs_root *tree_root,
3704 struct btrfs_root *tree_root,
3719 int btrfs_find_orphan_roots(struct btrfs_root *tree_root);
Ddev-replace.c464 struct btrfs_root *root = fs_info->tree_root; in btrfs_dev_replace_finishing()
692 struct btrfs_root *root = fs_info->tree_root; in __btrfs_dev_replace_cancel()
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,
3438 struct btrfs_root *root = fs_info->tree_root;
4224 inode = lookup_free_space_inode(fs_info->tree_root, rc->block_group,
4300 trans = btrfs_start_transaction(root->fs_info->tree_root, 0);
4308 ret = btrfs_update_root(trans, root->fs_info->tree_root,
4311 err = btrfs_end_transaction(trans, root->fs_info->tree_root);
4346 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()
Dvolumes.c3333 ret = del_balance_item(fs_info->tree_root); in __cancel_balance()
3478 ret = insert_balance_item(fs_info->tree_root, bctl); in btrfs_balance()
3558 if (btrfs_test_opt(fs_info->tree_root, SKIP_BALANCE)) { in btrfs_resume_balance_async()
3585 ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); in btrfs_recover_balance()
3698 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
3896 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree() local
3905 trans = btrfs_start_transaction(tree_root, 2); in btrfs_create_uuid_tree()
3912 btrfs_abort_transaction(trans, tree_root, in btrfs_create_uuid_tree()
3919 ret = btrfs_commit_transaction(trans, tree_root); in btrfs_create_uuid_tree()
Dinode.c1766 root != root->fs_info->tree_root) in btrfs_clear_bit_hook()
2885 BUG_ON(root == root->fs_info->tree_root); in btrfs_finish_ordered_io()
2921 if (root != root->fs_info->tree_root) in btrfs_finish_ordered_io()
3157 ret = btrfs_del_orphan_item(trans, root->fs_info->tree_root, in btrfs_orphan_commit_root()
3251 ret = btrfs_insert_orphan_item(trans, root->fs_info->tree_root, in btrfs_orphan_add()
3377 if (ret == -ESTALE && root == root->fs_info->tree_root) { in btrfs_orphan_cleanup()
3705 if (root == root->fs_info->tree_root) in btrfs_read_locked_inode()
4085 ret = btrfs_del_root_ref(trans, root->fs_info->tree_root, in btrfs_unlink_subvol()
4285 root == root->fs_info->tree_root) in btrfs_truncate_inode_items()
4475 root == root->fs_info->tree_root)) { in btrfs_truncate_inode_items()
[all …]
Dfree-space-cache.c832 struct btrfs_root *root = fs_info->tree_root; in load_free_space_cache()
871 ret = __load_free_space_cache(fs_info->tree_root, inode, ctl, in load_free_space_cache()
1158 root = root->fs_info->tree_root; in btrfs_wait_cache_io()
1371 root = root->fs_info->tree_root; in btrfs_write_out_cache()
Dtree-log.c2831 ret = write_ctree_super(trans, root->fs_info->tree_root, 1); in btrfs_sync_log()
5233 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
5335 ret = btrfs_commit_transaction(trans, fs_info->tree_root); in btrfs_recover_log_trees()
5347 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.c492 eb = read_tree_block(fs_info->tree_root, ref->wanted_disk_byte, in __add_missing_keys()
Dextent_io.c4743 len = fs_info->tree_root->nodesize; in alloc_dummy_extent_buffer()
4904 unsigned long len = fs_info->tree_root->nodesize; in alloc_extent_buffer()
Dctree.c1401 BTRFS_NODEPTRS_PER_BLOCK(fs_info->tree_root)); in tree_mod_log_rewind()
Dsend.c2308 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
/linux-4.1.27/fs/btrfs/tests/
Dqgroup-tests.c414 root->fs_info->tree_root = root; in btrfs_test_qgroups()