Lines Matching refs:handle

529 static inline int ocfs2_et_root_journal_access(handle_t *handle,  in ocfs2_et_root_journal_access()  argument
533 return et->et_root_journal_access(handle, et->et_ci, et->et_root_bh, in ocfs2_et_root_journal_access()
571 static void ocfs2_adjust_rightmost_records(handle_t *handle,
726 int ocfs2_path_bh_journal_access(handle_t *handle, in ocfs2_path_bh_journal_access() argument
739 return access(handle, ci, path->p_node[idx].bh, in ocfs2_path_bh_journal_access()
747 handle_t *handle, in ocfs2_journal_access_path() argument
756 ret = ocfs2_path_bh_journal_access(handle, ci, path, i); in ocfs2_journal_access_path()
995 static int ocfs2_create_new_meta_bhs(handle_t *handle, in ocfs2_create_new_meta_bhs() argument
1011 status = ocfs2_claim_metadata(handle, in ocfs2_create_new_meta_bhs()
1032 status = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_create_new_meta_bhs()
1058 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs()
1102 static int ocfs2_adjust_rightmost_branch(handle_t *handle, in ocfs2_adjust_rightmost_branch() argument
1122 status = ocfs2_extend_trans(handle, path_num_items(path)); in ocfs2_adjust_rightmost_branch()
1128 status = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_adjust_rightmost_branch()
1137 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_adjust_rightmost_branch()
1155 static int ocfs2_add_branch(handle_t *handle, in ocfs2_add_branch() argument
1200 status = ocfs2_adjust_rightmost_branch(handle, et); in ocfs2_add_branch()
1216 status = ocfs2_create_new_meta_bhs(handle, et, new_blocks, in ocfs2_add_branch()
1238 status = ocfs2_journal_access_eb(handle, et->et_ci, bh, in ocfs2_add_branch()
1263 ocfs2_journal_dirty(handle, bh); in ocfs2_add_branch()
1273 status = ocfs2_journal_access_eb(handle, et->et_ci, *last_eb_bh, in ocfs2_add_branch()
1279 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_add_branch()
1286 status = ocfs2_journal_access_eb(handle, et->et_ci, eb_bh, in ocfs2_add_branch()
1309 ocfs2_journal_dirty(handle, *last_eb_bh); in ocfs2_add_branch()
1310 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_add_branch()
1312 ocfs2_journal_dirty(handle, eb_bh); in ocfs2_add_branch()
1338 static int ocfs2_shift_tree_depth(handle_t *handle, in ocfs2_shift_tree_depth() argument
1350 status = ocfs2_create_new_meta_bhs(handle, et, 1, meta_ac, in ocfs2_shift_tree_depth()
1364 status = ocfs2_journal_access_eb(handle, et->et_ci, new_eb_bh, in ocfs2_shift_tree_depth()
1377 ocfs2_journal_dirty(handle, new_eb_bh); in ocfs2_shift_tree_depth()
1379 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_shift_tree_depth()
1402 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_shift_tree_depth()
1505 static int ocfs2_grow_tree(handle_t *handle, struct ocfs2_extent_tree *et, in ocfs2_grow_tree() argument
1536 ret = ocfs2_shift_tree_depth(handle, et, meta_ac, &bh); in ocfs2_grow_tree()
1561 ret = ocfs2_add_branch(handle, et, bh, last_eb_bh, in ocfs2_grow_tree()
2022 static void ocfs2_complete_edge_insert(handle_t *handle, in ocfs2_complete_edge_insert() argument
2065 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2066 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2090 ocfs2_journal_dirty(handle, root_bh); in ocfs2_complete_edge_insert()
2093 static int ocfs2_rotate_subtree_right(handle_t *handle, in ocfs2_rotate_subtree_right() argument
2128 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2136 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_right()
2143 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_right()
2162 ocfs2_journal_dirty(handle, right_leaf_bh); in ocfs2_rotate_subtree_right()
2181 ocfs2_journal_dirty(handle, left_leaf_bh); in ocfs2_rotate_subtree_right()
2183 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2269 static int ocfs2_extend_rotate_transaction(handle_t *handle, int subtree_depth, in ocfs2_extend_rotate_transaction() argument
2276 if (handle->h_buffer_credits < credits) in ocfs2_extend_rotate_transaction()
2277 ret = ocfs2_extend_trans(handle, in ocfs2_extend_rotate_transaction()
2278 credits - handle->h_buffer_credits); in ocfs2_extend_rotate_transaction()
2348 static int ocfs2_rotate_tree_right(handle_t *handle, in ocfs2_rotate_tree_right() argument
2355 int ret, start, orig_credits = handle->h_buffer_credits; in ocfs2_rotate_tree_right()
2456 ret = ocfs2_extend_rotate_transaction(handle, start, in ocfs2_rotate_tree_right()
2463 ret = ocfs2_rotate_subtree_right(handle, et, left_path, in ocfs2_rotate_tree_right()
2509 static int ocfs2_update_edge_lengths(handle_t *handle, in ocfs2_update_edge_lengths() argument
2528 ret = ocfs2_extend_trans(handle, subtree_index); in ocfs2_update_edge_lengths()
2534 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_update_edge_lengths()
2558 ocfs2_journal_dirty(handle, path->p_node[i].bh); in ocfs2_update_edge_lengths()
2564 static void ocfs2_unlink_path(handle_t *handle, in ocfs2_unlink_path() argument
2591 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2599 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2609 static void ocfs2_unlink_subtree(handle_t *handle, in ocfs2_unlink_subtree() argument
2638 ocfs2_journal_dirty(handle, root_bh); in ocfs2_unlink_subtree()
2639 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_unlink_subtree()
2641 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2645 static int ocfs2_rotate_subtree_left(handle_t *handle, in ocfs2_rotate_subtree_left() argument
2687 ret = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2706 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_rotate_subtree_left()
2722 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2730 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2737 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2766 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_rotate_subtree_left()
2767 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2770 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2772 ret = ocfs2_update_edge_lengths(handle, et, subtree_index, in ocfs2_rotate_subtree_left()
2790 ocfs2_journal_dirty(handle, et_root_bh); in ocfs2_rotate_subtree_left()
2794 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2879 static int ocfs2_rotate_rightmost_leaf_left(handle_t *handle, in ocfs2_rotate_rightmost_leaf_left() argument
2890 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, in ocfs2_rotate_rightmost_leaf_left()
2898 ocfs2_journal_dirty(handle, bh); in ocfs2_rotate_rightmost_leaf_left()
2904 static int __ocfs2_rotate_tree_left(handle_t *handle, in __ocfs2_rotate_tree_left() argument
2959 ret = ocfs2_extend_rotate_transaction(handle, subtree_root, in __ocfs2_rotate_tree_left()
2970 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in __ocfs2_rotate_tree_left()
2977 ret = ocfs2_rotate_subtree_left(handle, et, left_path, in __ocfs2_rotate_tree_left()
3021 static int ocfs2_remove_rightmost_path(handle_t *handle, in ocfs2_remove_rightmost_path() argument
3040 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_remove_rightmost_path()
3041 handle->h_buffer_credits, in ocfs2_remove_rightmost_path()
3048 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_remove_rightmost_path()
3079 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_remove_rightmost_path()
3087 ocfs2_unlink_subtree(handle, et, left_path, path, in ocfs2_remove_rightmost_path()
3089 ret = ocfs2_update_edge_lengths(handle, et, subtree_index, in ocfs2_remove_rightmost_path()
3106 ocfs2_unlink_path(handle, et, dealloc, path, 1); in ocfs2_remove_rightmost_path()
3116 ocfs2_journal_dirty(handle, path_root_bh(path)); in ocfs2_remove_rightmost_path()
3128 handle_t *handle; in ocfs2_remove_rightmost_empty_extent() local
3132 handle = ocfs2_start_trans(osb, credits); in ocfs2_remove_rightmost_empty_extent()
3133 if (IS_ERR(handle)) { in ocfs2_remove_rightmost_empty_extent()
3134 ret = PTR_ERR(handle); in ocfs2_remove_rightmost_empty_extent()
3139 ret = ocfs2_remove_rightmost_path(handle, et, path, dealloc); in ocfs2_remove_rightmost_empty_extent()
3143 ocfs2_commit_trans(osb, handle); in ocfs2_remove_rightmost_empty_extent()
3163 static int ocfs2_rotate_tree_left(handle_t *handle, in ocfs2_rotate_tree_left() argument
3168 int ret, orig_credits = handle->h_buffer_credits; in ocfs2_rotate_tree_left()
3183 ret = ocfs2_rotate_rightmost_leaf_left(handle, et, path); in ocfs2_rotate_tree_left()
3231 ret = ocfs2_remove_rightmost_path(handle, et, path, in ocfs2_rotate_tree_left()
3243 ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, path, in ocfs2_rotate_tree_left()
3254 ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, in ocfs2_rotate_tree_left()
3362 handle_t *handle, in ocfs2_merge_rec_right() argument
3406 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_right()
3407 handle->h_buffer_credits, in ocfs2_merge_rec_right()
3417 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3426 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_right()
3433 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_right()
3446 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path, in ocfs2_merge_rec_right()
3463 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_right()
3465 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3466 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3528 handle_t *handle, in ocfs2_merge_rec_left() argument
3568 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_left()
3569 handle->h_buffer_credits, in ocfs2_merge_rec_left()
3579 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3588 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_left()
3595 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_left()
3608 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3633 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_left()
3635 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_merge_rec_left()
3645 ret = ocfs2_remove_rightmost_path(handle, et, in ocfs2_merge_rec_left()
3659 ocfs2_complete_edge_insert(handle, left_path, in ocfs2_merge_rec_left()
3667 static int ocfs2_try_to_merge_extent(handle_t *handle, in ocfs2_try_to_merge_extent() argument
3689 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3718 ret = ocfs2_merge_rec_right(path, handle, et, split_rec, in ocfs2_try_to_merge_extent()
3731 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3743 ret = ocfs2_merge_rec_left(path, handle, et, rec, in ocfs2_try_to_merge_extent()
3751 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3768 ret = ocfs2_merge_rec_left(path, handle, et, in ocfs2_try_to_merge_extent()
3776 ret = ocfs2_merge_rec_right(path, handle, in ocfs2_try_to_merge_extent()
3790 ret = ocfs2_rotate_tree_left(handle, et, path, in ocfs2_try_to_merge_extent()
3926 static void ocfs2_adjust_rightmost_records(handle_t *handle, in ocfs2_adjust_rightmost_records() argument
3960 ocfs2_journal_dirty(handle, bh); in ocfs2_adjust_rightmost_records()
3964 static int ocfs2_append_rec_to_path(handle_t *handle, in ocfs2_append_rec_to_path() argument
4032 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4038 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4135 static int ocfs2_insert_path(handle_t *handle, in ocfs2_insert_path() argument
4152 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth); in ocfs2_insert_path()
4158 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_insert_path()
4169 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4190 ocfs2_journal_dirty(handle, in ocfs2_insert_path()
4196 ocfs2_journal_dirty(handle, leaf_bh); in ocfs2_insert_path()
4207 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4216 static int ocfs2_do_insert_extent(handle_t *handle, in ocfs2_do_insert_extent() argument
4229 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_do_insert_extent()
4279 ret = ocfs2_rotate_tree_right(handle, et, type->ins_split, in ocfs2_do_insert_extent()
4291 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_do_insert_extent()
4299 ret = ocfs2_append_rec_to_path(handle, et, insert_rec, in ocfs2_do_insert_extent()
4307 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4319 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_do_insert_extent()
4681 int ocfs2_insert_extent(handle_t *handle, in ocfs2_insert_extent() argument
4722 status = ocfs2_grow_tree(handle, et, in ocfs2_insert_extent()
4732 status = ocfs2_do_insert_extent(handle, et, &rec, &insert); in ocfs2_insert_extent()
4751 int ocfs2_add_clusters_in_btree(handle_t *handle, in ocfs2_add_clusters_in_btree() argument
4801 status = __ocfs2_claim_clusters(handle, data_ac, 1, in ocfs2_add_clusters_in_btree()
4812 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_add_clusters_in_btree()
4824 status = ocfs2_insert_extent(handle, et, *logical_offset, block, in ocfs2_add_clusters_in_btree()
4832 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_add_clusters_in_btree()
4846 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_add_clusters_in_btree()
4849 ocfs2_free_clusters(handle, in ocfs2_add_clusters_in_btree()
4883 static int ocfs2_split_and_insert(handle_t *handle, in ocfs2_split_and_insert() argument
4918 ret = ocfs2_grow_tree(handle, et, in ocfs2_split_and_insert()
4956 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_and_insert()
4995 static int ocfs2_replace_extent_rec(handle_t *handle, in ocfs2_replace_extent_rec() argument
5004 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, in ocfs2_replace_extent_rec()
5013 ocfs2_journal_dirty(handle, path_leaf_bh(path)); in ocfs2_replace_extent_rec()
5037 int ocfs2_split_extent(handle_t *handle, in ocfs2_split_extent() argument
5104 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5107 ret = ocfs2_split_and_insert(handle, et, path, in ocfs2_split_extent()
5113 ret = ocfs2_try_to_merge_extent(handle, et, path, in ocfs2_split_extent()
5137 int ocfs2_change_extent_flag(handle_t *handle, in ocfs2_change_extent_flag() argument
5204 ret = ocfs2_split_extent(handle, et, left_path, in ocfs2_change_extent_flag()
5227 handle_t *handle, u32 cpos, u32 len, u32 phys, in ocfs2_mark_extent_written() argument
5250 ret = ocfs2_change_extent_flag(handle, et, cpos, in ocfs2_mark_extent_written()
5260 static int ocfs2_split_tree(handle_t *handle, struct ocfs2_extent_tree *et, in ocfs2_split_tree() argument
5298 ret = ocfs2_extend_trans(handle, credits); in ocfs2_split_tree()
5306 ret = ocfs2_grow_tree(handle, et, &depth, &last_eb_bh, in ocfs2_split_tree()
5320 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_tree()
5329 static int ocfs2_truncate_rec(handle_t *handle, in ocfs2_truncate_rec() argument
5345 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_truncate_rec()
5406 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_truncate_rec()
5407 handle->h_buffer_credits, in ocfs2_truncate_rec()
5414 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_truncate_rec()
5420 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_truncate_rec()
5443 ocfs2_adjust_rightmost_records(handle, et, path, in ocfs2_truncate_rec()
5455 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_truncate_rec()
5470 ocfs2_complete_edge_insert(handle, left_path, path, in ocfs2_truncate_rec()
5474 ocfs2_journal_dirty(handle, path_leaf_bh(path)); in ocfs2_truncate_rec()
5476 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_truncate_rec()
5487 int ocfs2_remove_extent(handle_t *handle, in ocfs2_remove_extent() argument
5557 ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, in ocfs2_remove_extent()
5564 ret = ocfs2_split_tree(handle, et, path, index, in ocfs2_remove_extent()
5611 ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, in ocfs2_remove_extent()
5686 handle_t *handle; in ocfs2_remove_btree_range() local
5732 handle = ocfs2_start_trans(osb, in ocfs2_remove_btree_range()
5734 if (IS_ERR(handle)) { in ocfs2_remove_btree_range()
5735 ret = PTR_ERR(handle); in ocfs2_remove_btree_range()
5740 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_remove_btree_range()
5750 ret = ocfs2_remove_extent(handle, et, cpos, len, meta_ac, dealloc); in ocfs2_remove_btree_range()
5757 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_remove_btree_range()
5759 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_remove_btree_range()
5763 ret = ocfs2_decrease_refcount(inode, handle, in ocfs2_remove_btree_range()
5769 ret = ocfs2_truncate_log_append(osb, handle, in ocfs2_remove_btree_range()
5777 ocfs2_commit_trans(osb, handle); in ocfs2_remove_btree_range()
5824 handle_t *handle, in ocfs2_truncate_log_append() argument
5864 status = ocfs2_journal_access_di(handle, INODE_CACHE(tl_inode), tl_bh, in ocfs2_truncate_log_append()
5892 ocfs2_journal_dirty(handle, tl_bh); in ocfs2_truncate_log_append()
5900 handle_t *handle, in ocfs2_replay_truncate_records() argument
5920 status = ocfs2_journal_access_di(handle, INODE_CACHE(tl_inode), tl_bh, in ocfs2_replay_truncate_records()
5929 ocfs2_journal_dirty(handle, tl_bh); in ocfs2_replay_truncate_records()
5934 status = ocfs2_extend_trans(handle, in ocfs2_replay_truncate_records()
5953 status = ocfs2_free_clusters(handle, data_alloc_inode, in ocfs2_replay_truncate_records()
5975 handle_t *handle; in __ocfs2_flush_truncate_log() local
6019 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in __ocfs2_flush_truncate_log()
6020 if (IS_ERR(handle)) { in __ocfs2_flush_truncate_log()
6021 status = PTR_ERR(handle); in __ocfs2_flush_truncate_log()
6026 status = ocfs2_replay_truncate_records(osb, handle, data_alloc_inode, in __ocfs2_flush_truncate_log()
6031 ocfs2_commit_trans(osb, handle); in __ocfs2_flush_truncate_log()
6197 handle_t *handle; in ocfs2_complete_truncate_log_recovery() local
6222 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in ocfs2_complete_truncate_log_recovery()
6223 if (IS_ERR(handle)) { in ocfs2_complete_truncate_log_recovery()
6224 status = PTR_ERR(handle); in ocfs2_complete_truncate_log_recovery()
6233 status = ocfs2_truncate_log_append(osb, handle, in ocfs2_complete_truncate_log_recovery()
6235 ocfs2_commit_trans(osb, handle); in ocfs2_complete_truncate_log_recovery()
6338 handle_t *handle; in ocfs2_free_cached_blocks() local
6358 handle = ocfs2_start_trans(osb, OCFS2_SUBALLOC_FREE); in ocfs2_free_cached_blocks()
6359 if (IS_ERR(handle)) { in ocfs2_free_cached_blocks()
6360 ret = PTR_ERR(handle); in ocfs2_free_cached_blocks()
6374 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks()
6381 ret = ocfs2_extend_trans(handle, OCFS2_SUBALLOC_FREE); in ocfs2_free_cached_blocks()
6393 ocfs2_commit_trans(osb, handle); in ocfs2_free_cached_blocks()
6440 handle_t *handle; in ocfs2_free_cached_clusters() local
6454 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in ocfs2_free_cached_clusters()
6455 if (IS_ERR(handle)) { in ocfs2_free_cached_clusters()
6456 ret = PTR_ERR(handle); in ocfs2_free_cached_clusters()
6461 ret = ocfs2_truncate_log_append(osb, handle, head->free_blk, in ocfs2_free_cached_clusters()
6464 ocfs2_commit_trans(osb, handle); in ocfs2_free_cached_clusters()
6604 static int ocfs2_zero_func(handle_t *handle, struct buffer_head *bh) in ocfs2_zero_func() argument
6611 void ocfs2_map_and_dirty_page(struct inode *inode, handle_t *handle, in ocfs2_map_and_dirty_page() argument
6629 ret = walk_page_buffers(handle, page_buffers(page), in ocfs2_map_and_dirty_page()
6635 ret = ocfs2_jbd2_file_inode(handle, inode); in ocfs2_map_and_dirty_page()
6648 int numpages, u64 phys, handle_t *handle) in ocfs2_zero_cluster_pages() argument
6671 ocfs2_map_and_dirty_page(inode, handle, from, to, page, 1, in ocfs2_zero_cluster_pages()
6738 int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, in ocfs2_zero_range_for_truncate() argument
6788 numpages, phys, handle); in ocfs2_zero_range_for_truncate()
6857 handle_t *handle; in ocfs2_convert_inline_data_to_extents() local
6886 handle = ocfs2_start_trans(osb, in ocfs2_convert_inline_data_to_extents()
6888 if (IS_ERR(handle)) { in ocfs2_convert_inline_data_to_extents()
6889 ret = PTR_ERR(handle); in ocfs2_convert_inline_data_to_extents()
6894 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents()
6913 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_convert_inline_data_to_extents()
6957 ocfs2_map_and_dirty_page(inode, handle, 0, page_end, in ocfs2_convert_inline_data_to_extents()
6966 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_convert_inline_data_to_extents()
6969 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents()
6978 ret = ocfs2_insert_extent(handle, &et, 0, block, 1, 0, NULL); in ocfs2_convert_inline_data_to_extents()
6999 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_convert_inline_data_to_extents()
7002 ocfs2_free_clusters(handle, in ocfs2_convert_inline_data_to_extents()
7009 ocfs2_commit_trans(osb, handle); in ocfs2_convert_inline_data_to_extents()
7204 handle_t *handle; in ocfs2_truncate_inline() local
7227 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_truncate_inline()
7228 if (IS_ERR(handle)) { in ocfs2_truncate_inline()
7229 ret = PTR_ERR(handle); in ocfs2_truncate_inline()
7234 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_truncate_inline()
7261 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_truncate_inline()
7262 ocfs2_journal_dirty(handle, di_bh); in ocfs2_truncate_inline()
7265 ocfs2_commit_trans(osb, handle); in ocfs2_truncate_inline()