Lines Matching refs:fs_info

148 		if (btrfs_need_log_full_commit(root->fs_info, trans)) {  in start_log_trans()
171 mutex_lock(&root->fs_info->tree_log_mutex); in start_log_trans()
172 if (!root->fs_info->log_root_tree) in start_log_trans()
173 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans()
174 mutex_unlock(&root->fs_info->tree_log_mutex); in start_log_trans()
306 if (btrfs_fs_incompat(log->fs_info, MIXED_GROUPS)) { in process_one_buffer()
313 ret = btrfs_pin_extent_for_log_replay(log->fs_info->extent_root, in process_one_buffer()
562 inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); in read_one_inode()
741 root->fs_info->csum_root, in replay_one_extent()
2343 clean_tree_block(trans, root->fs_info, in walk_down_log_tree()
2422 clean_tree_block(trans, root->fs_info, in walk_up_log_tree()
2499 clean_tree_block(trans, log->fs_info, next); in walk_log_tree()
2529 ret = btrfs_insert_root(trans, log->fs_info->log_root_tree, in update_log_root()
2532 ret = btrfs_update_root(trans, log->fs_info->log_root_tree, in update_log_root()
2631 struct btrfs_root *log_root_tree = root->fs_info->log_root_tree; in btrfs_sync_log()
2671 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in btrfs_sync_log()
2692 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2735 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2783 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in btrfs_sync_log()
2797 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2809 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2816 btrfs_set_super_log_root(root->fs_info->super_for_commit, in btrfs_sync_log()
2818 btrfs_set_super_log_root_level(root->fs_info->super_for_commit, in btrfs_sync_log()
2831 ret = write_ctree_super(trans, root->fs_info->tree_root, 1); in btrfs_sync_log()
2833 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_sync_log()
2924 struct btrfs_fs_info *fs_info) in btrfs_free_log_root_tree() argument
2926 if (fs_info->log_root_tree) { in btrfs_free_log_root_tree()
2927 free_log_tree(trans, fs_info->log_root_tree); in btrfs_free_log_root_tree()
2928 fs_info->log_root_tree = NULL; in btrfs_free_log_root_tree()
3051 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_del_dir_entries_in_log()
3084 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_del_inode_ref_in_log()
3601 log->fs_info->csum_root, in copy_items()
3909 ret = btrfs_lookup_csums_range(log->fs_info->csum_root, in wait_ordered_extents()
4040 test_gen = root->fs_info->last_trans_committed; in btrfs_log_changed_extents()
4244 if (!btrfs_fs_incompat(root->fs_info, NO_HOLES)) in btrfs_log_trailing_hole()
4501 BTRFS_I(inode)->generation > root->fs_info->last_trans_committed) in btrfs_log_inode()
4611 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_log_inode()
4853 btrfs_set_log_full_commit(root->fs_info, trans); in check_parent_dirs_for_sync()
4994 di_inode = btrfs_iget(root->fs_info->sb, &di_key, in log_new_dir_dentries()
5068 u64 last_committed = root->fs_info->last_trans_committed; in btrfs_log_inode_parent()
5086 if (root->fs_info->last_trans_log_full_commit > in btrfs_log_inode_parent()
5087 root->fs_info->last_trans_committed) { in btrfs_log_inode_parent()
5154 root->fs_info->last_trans_committed || in btrfs_log_inode_parent()
5175 btrfs_set_log_full_commit(root->fs_info, trans); in btrfs_log_inode_parent()
5221 struct btrfs_fs_info *fs_info = log_root_tree->fs_info; in btrfs_recover_log_trees() local
5231 fs_info->log_root_recovering = 1; in btrfs_recover_log_trees()
5233 trans = btrfs_start_transaction(fs_info->tree_root, 0); in btrfs_recover_log_trees()
5244 btrfs_error(fs_info, ret, "Failed to pin buffers while " in btrfs_recover_log_trees()
5258 btrfs_error(fs_info, ret, in btrfs_recover_log_trees()
5276 btrfs_error(fs_info, ret, in btrfs_recover_log_trees()
5285 wc.replay_dest = btrfs_read_fs_root_no_name(fs_info, &tmp_key); in btrfs_recover_log_trees()
5291 btrfs_error(fs_info, ret, "Couldn't read target root " in btrfs_recover_log_trees()
5335 ret = btrfs_commit_transaction(trans, fs_info->tree_root); in btrfs_recover_log_trees()
5341 fs_info->log_root_recovering = 0; in btrfs_recover_log_trees()
5347 btrfs_end_transaction(wc.trans, fs_info->tree_root); in btrfs_recover_log_trees()
5434 root->fs_info->last_trans_committed && in btrfs_log_new_name()
5436 root->fs_info->last_trans_committed)) in btrfs_log_new_name()