Lines Matching defs:trans
43 struct btrfs_trans_handle *trans,
81 * We are often under a trans handle at this point, so we need to make
135 struct btrfs_trans_handle *trans,
147 ret = btrfs_insert_empty_inode(trans, root, path, ino);
161 btrfs_set_inode_generation(leaf, inode_item, trans->transid);
169 btrfs_set_inode_transid(leaf, inode_item, trans->transid);
177 ret = btrfs_insert_empty_item(trans, root, path, &key,
195 int create_free_space_inode(struct btrfs_trans_handle *trans,
202 ret = btrfs_find_free_objectid(trans->fs_info->tree_root, &ino);
206 return __create_free_space_inode(trans->fs_info->tree_root, trans, path,
229 int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans,
245 mutex_lock(&trans->transaction->cache_write_mutex);
249 btrfs_wait_cache_io(trans, block_group, path);
270 ret = btrfs_truncate_inode_items(trans, root, inode,
275 ret = btrfs_update_inode(trans, root, inode);
279 mutex_unlock(&trans->transaction->cache_write_mutex);
281 btrfs_abort_transaction(trans, ret);
1019 update_cache_item(struct btrfs_trans_handle *trans,
1034 ret = btrfs_search_slot(trans, root, &key, path, 0, 1);
1056 BTRFS_I(inode)->generation = trans->transid;
1061 btrfs_set_free_space_generation(leaf, header, trans->transid);
1072 struct btrfs_trans_handle *trans,
1091 unpin = &trans->transaction->pinned_extents;
1171 struct btrfs_trans_handle *trans,
1188 ret = update_cache_item(trans, root, inode, path, offset,
1199 btrfs_update_inode(trans, root, inode);
1203 spin_lock(&trans->transaction->dirty_bgs_lock);
1219 spin_unlock(&trans->transaction->dirty_bgs_lock);
1229 struct btrfs_trans_handle *trans,
1233 return __btrfs_wait_cache_io(root, trans, NULL, io_ctl, path, 0);
1236 int btrfs_wait_cache_io(struct btrfs_trans_handle *trans,
1240 return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans,
1250 * @trans - the trans handle
1260 struct btrfs_trans_handle *trans)
1300 io_ctl_set_generation(io_ctl, trans->transid);
1319 ret = write_pinned_extent_entries(trans, block_group, io_ctl, &entries);
1389 btrfs_update_inode(trans, root, inode);
1395 int btrfs_write_out_cache(struct btrfs_trans_handle *trans,
1399 struct btrfs_fs_info *fs_info = trans->fs_info;
1416 block_group, &block_group->io_ctl, trans);
3914 struct btrfs_trans_handle *trans,
3917 return __create_free_space_inode(root, trans, path,
3964 struct btrfs_trans_handle *trans,
3978 ret = __btrfs_write_out_cache(root, inode, ctl, NULL, &io_ctl, trans);
3987 ret = btrfs_wait_cache_io_root(root, trans, &io_ctl, path);