Lines Matching refs:trans
393 struct btrfs_trans_handle *trans) in btrfs_save_ino_cache() argument
422 rsv = trans->block_rsv; in btrfs_save_ino_cache()
423 trans->block_rsv = &root->fs_info->trans_block_rsv; in btrfs_save_ino_cache()
425 num_bytes = trans->bytes_reserved; in btrfs_save_ino_cache()
433 trans->bytes_reserved = btrfs_calc_trans_metadata_size(root, 10); in btrfs_save_ino_cache()
434 ret = btrfs_block_rsv_add(root, trans->block_rsv, in btrfs_save_ino_cache()
435 trans->bytes_reserved, in btrfs_save_ino_cache()
440 trans->transid, trans->bytes_reserved, 1); in btrfs_save_ino_cache()
452 ret = create_free_ino_inode(root, trans, path); in btrfs_save_ino_cache()
459 ret = btrfs_update_inode(trans, root, inode); in btrfs_save_ino_cache()
461 btrfs_abort_transaction(trans, root, ret); in btrfs_save_ino_cache()
466 ret = btrfs_truncate_free_space_cache(root, trans, NULL, inode); in btrfs_save_ino_cache()
469 btrfs_abort_transaction(trans, root, ret); in btrfs_save_ino_cache()
495 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc, in btrfs_save_ino_cache()
503 ret = btrfs_write_out_ino_cache(root, trans, path, inode); in btrfs_save_ino_cache()
508 trans->transid, trans->bytes_reserved, 0); in btrfs_save_ino_cache()
509 btrfs_block_rsv_release(root, trans->block_rsv, trans->bytes_reserved); in btrfs_save_ino_cache()
511 trans->block_rsv = rsv; in btrfs_save_ino_cache()
512 trans->bytes_reserved = num_bytes; in btrfs_save_ino_cache()