Lines Matching refs:trans

132 				     struct btrfs_trans_handle *trans,  in __create_free_space_inode()  argument
144 ret = btrfs_insert_empty_inode(trans, root, path, ino); in __create_free_space_inode()
158 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode()
166 btrfs_set_inode_transid(leaf, inode_item, trans->transid); in __create_free_space_inode()
174 ret = btrfs_insert_empty_item(trans, root, path, &key, in __create_free_space_inode()
193 struct btrfs_trans_handle *trans, in create_free_space_inode() argument
204 return __create_free_space_inode(root, trans, path, ino, in create_free_space_inode()
228 struct btrfs_trans_handle *trans, in btrfs_truncate_free_space_cache() argument
243 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_truncate_free_space_cache()
247 btrfs_wait_cache_io(root, trans, block_group, in btrfs_truncate_free_space_cache()
272 ret = btrfs_truncate_inode_items(trans, root, inode, in btrfs_truncate_free_space_cache()
277 ret = btrfs_update_inode(trans, root, inode); in btrfs_truncate_free_space_cache()
281 mutex_unlock(&trans->transaction->cache_write_mutex); in btrfs_truncate_free_space_cache()
283 btrfs_abort_transaction(trans, root, ret); in btrfs_truncate_free_space_cache()
980 update_cache_item(struct btrfs_trans_handle *trans, in update_cache_item() argument
995 ret = btrfs_search_slot(trans, root, &key, path, 0, 1); in update_cache_item()
1019 BTRFS_I(inode)->generation = trans->transid; in update_cache_item()
1024 btrfs_set_free_space_generation(leaf, header, trans->transid); in update_cache_item()
1144 struct btrfs_trans_handle *trans, in btrfs_wait_cache_io() argument
1164 ret = update_cache_item(trans, root, inode, path, offset, in btrfs_wait_cache_io()
1179 btrfs_update_inode(trans, root, inode); in btrfs_wait_cache_io()
1183 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_wait_cache_io()
1199 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_wait_cache_io()
1225 struct btrfs_trans_handle *trans, in __btrfs_write_out_cache() argument
1266 io_ctl_set_generation(io_ctl, trans->transid); in __btrfs_write_out_cache()
1341 btrfs_update_inode(trans, root, inode); in __btrfs_write_out_cache()
1361 struct btrfs_trans_handle *trans, in btrfs_write_out_cache() argument
1383 &block_group->io_ctl, trans, in btrfs_write_out_cache()
3466 struct btrfs_trans_handle *trans, in create_free_ino_inode() argument
3469 return __create_free_space_inode(root, trans, path, in create_free_ino_inode()
3516 struct btrfs_trans_handle *trans, in btrfs_write_out_ino_cache() argument
3530 trans, path, 0); in btrfs_write_out_ino_cache()
3539 ret = btrfs_wait_cache_io(root, trans, NULL, &io_ctl, path, 0); in btrfs_write_out_ino_cache()