Lines Matching refs:fs_info

148 		if (btrfs_need_log_full_commit(root->fs_info, trans)) {  in start_log_trans()
160 mutex_lock(&root->fs_info->tree_log_mutex); in start_log_trans()
161 if (!root->fs_info->log_root_tree) in start_log_trans()
162 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans()
163 mutex_unlock(&root->fs_info->tree_log_mutex); in start_log_trans()
299 if (btrfs_fs_incompat(log->fs_info, MIXED_GROUPS)) { in process_one_buffer()
306 ret = btrfs_pin_extent_for_log_replay(log->fs_info->extent_root, in process_one_buffer()
555 inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); in read_one_inode()
783 root->fs_info->csum_root, in replay_one_extent()
788 root->fs_info->csum_root, in replay_one_extent()
2445 clean_tree_block(trans, root->fs_info, in walk_down_log_tree()
2524 clean_tree_block(trans, root->fs_info, in walk_up_log_tree()
2601 clean_tree_block(trans, log->fs_info, next); in walk_log_tree()
2631 ret = btrfs_insert_root(trans, log->fs_info->log_root_tree, in update_log_root()
2634 ret = btrfs_update_root(trans, log->fs_info->log_root_tree, in update_log_root()
2731 struct btrfs_root *log_root_tree = root->fs_info->log_root_tree; in btrfs_sync_log()
2771 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in btrfs_sync_log()
2792 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2837 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2885 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in btrfs_sync_log()
2899 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2911 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2918 btrfs_set_super_log_root(root->fs_info->super_for_commit, in btrfs_sync_log()
2920 btrfs_set_super_log_root_level(root->fs_info->super_for_commit, in btrfs_sync_log()
2933 ret = write_ctree_super(trans, root->fs_info->tree_root, 1); in btrfs_sync_log()
2935 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
3032 struct btrfs_fs_info *fs_info) in btrfs_free_log_root_tree() argument
3034 if (fs_info->log_root_tree) { in btrfs_free_log_root_tree()
3035 free_log_tree(trans, fs_info->log_root_tree); in btrfs_free_log_root_tree()
3036 fs_info->log_root_tree = NULL; in btrfs_free_log_root_tree()
3159 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_del_dir_entries_in_log()
3192 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_del_inode_ref_in_log()
3709 log->fs_info->csum_root, in copy_items()
4011 ret = btrfs_lookup_csums_range(log->fs_info->csum_root, in wait_ordered_extents()
4142 test_gen = root->fs_info->last_trans_committed; in btrfs_log_changed_extents()
4346 if (!btrfs_fs_incompat(root->fs_info, NO_HOLES)) in btrfs_log_trailing_hole()
4603 BTRFS_I(inode)->generation > root->fs_info->last_trans_committed) in btrfs_log_inode()
4713 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_log_inode()
4955 btrfs_set_log_full_commit(root->fs_info, trans); in check_parent_dirs_for_sync()
5096 di_inode = btrfs_iget(root->fs_info->sb, &di_key, in log_new_dir_dentries()
5220 dir_inode = btrfs_iget(root->fs_info->sb, &inode_key, in btrfs_log_all_parents()
5258 u64 last_committed = root->fs_info->last_trans_committed; in btrfs_log_inode_parent()
5273 if (root->fs_info->last_trans_log_full_commit > in btrfs_log_inode_parent()
5274 root->fs_info->last_trans_committed) { in btrfs_log_inode_parent()
5395 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_log_inode_parent()
5441 struct btrfs_fs_info *fs_info = log_root_tree->fs_info; in btrfs_recover_log_trees() local
5451 fs_info->log_root_recovering = 1; in btrfs_recover_log_trees()
5453 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
5464 btrfs_std_error(fs_info, ret, "Failed to pin buffers while " in btrfs_recover_log_trees()
5478 btrfs_std_error(fs_info, ret, in btrfs_recover_log_trees()
5496 btrfs_std_error(fs_info, ret, in btrfs_recover_log_trees()
5505 wc.replay_dest = btrfs_read_fs_root_no_name(fs_info, &tmp_key); in btrfs_recover_log_trees()
5511 btrfs_std_error(fs_info, ret, "Couldn't read target root " in btrfs_recover_log_trees()
5555 ret = btrfs_commit_transaction(trans, fs_info->tree_root); in btrfs_recover_log_trees()
5561 fs_info->log_root_recovering = 0; in btrfs_recover_log_trees()
5567 btrfs_end_transaction(wc.trans, fs_info->tree_root); in btrfs_recover_log_trees()
5654 root->fs_info->last_trans_committed && in btrfs_log_new_name()
5656 root->fs_info->last_trans_committed)) in btrfs_log_new_name()