• Home
  • Raw
  • Download

Lines Matching refs:handle

155 static int ocfs2_reuse_blk_from_dealloc(handle_t *handle,
524 static inline int ocfs2_et_root_journal_access(handle_t *handle, in ocfs2_et_root_journal_access() argument
528 return et->et_root_journal_access(handle, et->et_ci, et->et_root_bh, in ocfs2_et_root_journal_access()
566 static void ocfs2_adjust_rightmost_records(handle_t *handle,
721 int ocfs2_path_bh_journal_access(handle_t *handle, in ocfs2_path_bh_journal_access() argument
734 return access(handle, ci, path->p_node[idx].bh, in ocfs2_path_bh_journal_access()
742 handle_t *handle, in ocfs2_journal_access_path() argument
751 ret = ocfs2_path_bh_journal_access(handle, ci, path, i); in ocfs2_journal_access_path()
987 static int ocfs2_create_new_meta_bhs(handle_t *handle, in ocfs2_create_new_meta_bhs() argument
1003 status = ocfs2_claim_metadata(handle, in ocfs2_create_new_meta_bhs()
1024 status = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_create_new_meta_bhs()
1050 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs()
1094 static int ocfs2_adjust_rightmost_branch(handle_t *handle, in ocfs2_adjust_rightmost_branch() argument
1114 status = ocfs2_extend_trans(handle, path_num_items(path)); in ocfs2_adjust_rightmost_branch()
1120 status = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_adjust_rightmost_branch()
1129 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_adjust_rightmost_branch()
1147 static int ocfs2_add_branch(handle_t *handle, in ocfs2_add_branch() argument
1192 status = ocfs2_adjust_rightmost_branch(handle, et); in ocfs2_add_branch()
1212 status = ocfs2_reuse_blk_from_dealloc(handle, et, in ocfs2_add_branch()
1225 status = ocfs2_create_new_meta_bhs(handle, et, in ocfs2_add_branch()
1250 status = ocfs2_journal_access_eb(handle, et->et_ci, bh, in ocfs2_add_branch()
1275 ocfs2_journal_dirty(handle, bh); in ocfs2_add_branch()
1285 status = ocfs2_journal_access_eb(handle, et->et_ci, *last_eb_bh, in ocfs2_add_branch()
1291 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_add_branch()
1298 status = ocfs2_journal_access_eb(handle, et->et_ci, eb_bh, in ocfs2_add_branch()
1321 ocfs2_journal_dirty(handle, *last_eb_bh); in ocfs2_add_branch()
1322 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_add_branch()
1324 ocfs2_journal_dirty(handle, eb_bh); in ocfs2_add_branch()
1350 static int ocfs2_shift_tree_depth(handle_t *handle, in ocfs2_shift_tree_depth() argument
1363 status = ocfs2_reuse_blk_from_dealloc(handle, et, in ocfs2_shift_tree_depth()
1367 status = ocfs2_create_new_meta_bhs(handle, et, 1, meta_ac, in ocfs2_shift_tree_depth()
1386 status = ocfs2_journal_access_eb(handle, et->et_ci, new_eb_bh, in ocfs2_shift_tree_depth()
1399 ocfs2_journal_dirty(handle, new_eb_bh); in ocfs2_shift_tree_depth()
1401 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_shift_tree_depth()
1424 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_shift_tree_depth()
1525 static int ocfs2_grow_tree(handle_t *handle, struct ocfs2_extent_tree *et, in ocfs2_grow_tree() argument
1556 ret = ocfs2_shift_tree_depth(handle, et, meta_ac, &bh); in ocfs2_grow_tree()
1581 ret = ocfs2_add_branch(handle, et, bh, last_eb_bh, in ocfs2_grow_tree()
2038 static void ocfs2_complete_edge_insert(handle_t *handle, in ocfs2_complete_edge_insert() argument
2080 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2081 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2105 ocfs2_journal_dirty(handle, root_bh); in ocfs2_complete_edge_insert()
2108 static int ocfs2_rotate_subtree_right(handle_t *handle, in ocfs2_rotate_subtree_right() argument
2143 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2151 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_right()
2158 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_right()
2177 ocfs2_journal_dirty(handle, right_leaf_bh); in ocfs2_rotate_subtree_right()
2196 ocfs2_journal_dirty(handle, left_leaf_bh); in ocfs2_rotate_subtree_right()
2198 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2284 static int ocfs2_extend_rotate_transaction(handle_t *handle, int subtree_depth, in ocfs2_extend_rotate_transaction() argument
2291 if (handle->h_buffer_credits < credits) in ocfs2_extend_rotate_transaction()
2292 ret = ocfs2_extend_trans(handle, in ocfs2_extend_rotate_transaction()
2293 credits - handle->h_buffer_credits); in ocfs2_extend_rotate_transaction()
2363 static int ocfs2_rotate_tree_right(handle_t *handle, in ocfs2_rotate_tree_right() argument
2370 int ret, start, orig_credits = handle->h_buffer_credits; in ocfs2_rotate_tree_right()
2471 ret = ocfs2_extend_rotate_transaction(handle, start, in ocfs2_rotate_tree_right()
2478 ret = ocfs2_rotate_subtree_right(handle, et, left_path, in ocfs2_rotate_tree_right()
2524 static int ocfs2_update_edge_lengths(handle_t *handle, in ocfs2_update_edge_lengths() argument
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
2635 ocfs2_journal_dirty(handle, root_bh); in ocfs2_unlink_subtree()
2636 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_unlink_subtree()
2638 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2642 static int ocfs2_rotate_subtree_left(handle_t *handle, in ocfs2_rotate_subtree_left() argument
2684 ret = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2703 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_rotate_subtree_left()
2719 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2727 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2734 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2763 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_rotate_subtree_left()
2764 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2767 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2769 ret = ocfs2_update_edge_lengths(handle, et, left_path); in ocfs2_rotate_subtree_left()
2786 ocfs2_journal_dirty(handle, et_root_bh); in ocfs2_rotate_subtree_left()
2790 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2875 static int ocfs2_rotate_rightmost_leaf_left(handle_t *handle, in ocfs2_rotate_rightmost_leaf_left() argument
2886 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, in ocfs2_rotate_rightmost_leaf_left()
2894 ocfs2_journal_dirty(handle, bh); in ocfs2_rotate_rightmost_leaf_left()
2900 static int __ocfs2_rotate_tree_left(handle_t *handle, in __ocfs2_rotate_tree_left() argument
2955 ret = ocfs2_extend_rotate_transaction(handle, 0, in __ocfs2_rotate_tree_left()
2966 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in __ocfs2_rotate_tree_left()
2973 ret = ocfs2_rotate_subtree_left(handle, et, left_path, in __ocfs2_rotate_tree_left()
3017 static int ocfs2_remove_rightmost_path(handle_t *handle, in ocfs2_remove_rightmost_path() argument
3032 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_remove_rightmost_path()
3063 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_remove_rightmost_path()
3071 ocfs2_unlink_subtree(handle, et, left_path, path, in ocfs2_remove_rightmost_path()
3073 ret = ocfs2_update_edge_lengths(handle, et, left_path); in ocfs2_remove_rightmost_path()
3089 ocfs2_unlink_path(handle, et, dealloc, path, 1); in ocfs2_remove_rightmost_path()
3099 ocfs2_journal_dirty(handle, path_root_bh(path)); in ocfs2_remove_rightmost_path()
3111 handle_t *handle; in ocfs2_remove_rightmost_empty_extent() local
3115 handle = ocfs2_start_trans(osb, credits); in ocfs2_remove_rightmost_empty_extent()
3116 if (IS_ERR(handle)) { in ocfs2_remove_rightmost_empty_extent()
3117 ret = PTR_ERR(handle); in ocfs2_remove_rightmost_empty_extent()
3122 ret = ocfs2_remove_rightmost_path(handle, et, path, dealloc); in ocfs2_remove_rightmost_empty_extent()
3126 ocfs2_commit_trans(osb, handle); in ocfs2_remove_rightmost_empty_extent()
3146 static int ocfs2_rotate_tree_left(handle_t *handle, in ocfs2_rotate_tree_left() argument
3151 int ret, orig_credits = handle->h_buffer_credits; in ocfs2_rotate_tree_left()
3166 ret = ocfs2_rotate_rightmost_leaf_left(handle, et, path); in ocfs2_rotate_tree_left()
3213 ret = ocfs2_remove_rightmost_path(handle, et, path, in ocfs2_rotate_tree_left()
3225 ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, path, in ocfs2_rotate_tree_left()
3236 ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, in ocfs2_rotate_tree_left()
3344 handle_t *handle, in ocfs2_merge_rec_right() argument
3388 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_right()
3389 handle->h_buffer_credits, in ocfs2_merge_rec_right()
3399 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3408 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_right()
3415 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_right()
3428 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path, in ocfs2_merge_rec_right()
3445 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_right()
3447 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3448 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3510 handle_t *handle, in ocfs2_merge_rec_left() argument
3550 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_left()
3551 handle->h_buffer_credits, in ocfs2_merge_rec_left()
3561 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3570 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_left()
3577 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_left()
3590 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3613 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_left()
3615 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_merge_rec_left()
3625 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_merge_rec_left()
3626 handle->h_buffer_credits, in ocfs2_merge_rec_left()
3633 ret = ocfs2_remove_rightmost_path(handle, et, in ocfs2_merge_rec_left()
3647 ocfs2_complete_edge_insert(handle, left_path, in ocfs2_merge_rec_left()
3655 static int ocfs2_try_to_merge_extent(handle_t *handle, in ocfs2_try_to_merge_extent() argument
3671 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_try_to_merge_extent()
3672 handle->h_buffer_credits, in ocfs2_try_to_merge_extent()
3685 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3714 ret = ocfs2_merge_rec_right(path, handle, et, split_rec, in ocfs2_try_to_merge_extent()
3727 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_try_to_merge_extent()
3728 handle->h_buffer_credits, in ocfs2_try_to_merge_extent()
3736 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3748 ret = ocfs2_merge_rec_left(path, handle, et, rec, in ocfs2_try_to_merge_extent()
3757 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_try_to_merge_extent()
3758 handle->h_buffer_credits, in ocfs2_try_to_merge_extent()
3765 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3782 ret = ocfs2_merge_rec_left(path, handle, et, in ocfs2_try_to_merge_extent()
3790 ret = ocfs2_merge_rec_right(path, handle, in ocfs2_try_to_merge_extent()
3801 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_try_to_merge_extent()
3802 handle->h_buffer_credits, in ocfs2_try_to_merge_extent()
3814 ret = ocfs2_rotate_tree_left(handle, et, path, in ocfs2_try_to_merge_extent()
3950 static void ocfs2_adjust_rightmost_records(handle_t *handle, in ocfs2_adjust_rightmost_records() argument
3983 ocfs2_journal_dirty(handle, bh); in ocfs2_adjust_rightmost_records()
3987 static int ocfs2_append_rec_to_path(handle_t *handle, in ocfs2_append_rec_to_path() argument
4055 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4061 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4158 static int ocfs2_insert_path(handle_t *handle, in ocfs2_insert_path() argument
4175 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth); in ocfs2_insert_path()
4181 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_insert_path()
4192 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4213 ocfs2_journal_dirty(handle, in ocfs2_insert_path()
4219 ocfs2_journal_dirty(handle, leaf_bh); in ocfs2_insert_path()
4230 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4239 static int ocfs2_do_insert_extent(handle_t *handle, in ocfs2_do_insert_extent() argument
4252 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_do_insert_extent()
4302 ret = ocfs2_rotate_tree_right(handle, et, type->ins_split, in ocfs2_do_insert_extent()
4314 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_do_insert_extent()
4322 ret = ocfs2_append_rec_to_path(handle, et, insert_rec, in ocfs2_do_insert_extent()
4330 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4342 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_do_insert_extent()
4702 int ocfs2_insert_extent(handle_t *handle, in ocfs2_insert_extent() argument
4743 status = ocfs2_grow_tree(handle, et, in ocfs2_insert_extent()
4753 status = ocfs2_do_insert_extent(handle, et, &rec, &insert); in ocfs2_insert_extent()
4772 int ocfs2_add_clusters_in_btree(handle_t *handle, in ocfs2_add_clusters_in_btree() argument
4822 status = __ocfs2_claim_clusters(handle, data_ac, 1, in ocfs2_add_clusters_in_btree()
4833 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_add_clusters_in_btree()
4845 status = ocfs2_insert_extent(handle, et, *logical_offset, block, in ocfs2_add_clusters_in_btree()
4853 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_add_clusters_in_btree()
4867 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_add_clusters_in_btree()
4870 ocfs2_free_clusters(handle, in ocfs2_add_clusters_in_btree()
4904 static int ocfs2_split_and_insert(handle_t *handle, in ocfs2_split_and_insert() argument
4939 ret = ocfs2_grow_tree(handle, et, in ocfs2_split_and_insert()
4977 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_and_insert()
5016 static int ocfs2_replace_extent_rec(handle_t *handle, in ocfs2_replace_extent_rec() argument
5025 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, in ocfs2_replace_extent_rec()
5034 ocfs2_journal_dirty(handle, path_leaf_bh(path)); in ocfs2_replace_extent_rec()
5058 int ocfs2_split_extent(handle_t *handle, in ocfs2_split_extent() argument
5118 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5121 ret = ocfs2_split_and_insert(handle, et, path, in ocfs2_split_extent()
5127 ret = ocfs2_try_to_merge_extent(handle, et, path, in ocfs2_split_extent()
5151 int ocfs2_change_extent_flag(handle_t *handle, in ocfs2_change_extent_flag() argument
5218 ret = ocfs2_split_extent(handle, et, left_path, in ocfs2_change_extent_flag()
5241 handle_t *handle, u32 cpos, u32 len, u32 phys, in ocfs2_mark_extent_written() argument
5264 ret = ocfs2_change_extent_flag(handle, et, cpos, in ocfs2_mark_extent_written()
5274 static int ocfs2_split_tree(handle_t *handle, struct ocfs2_extent_tree *et, in ocfs2_split_tree() argument
5312 ret = ocfs2_extend_trans(handle, credits); in ocfs2_split_tree()
5320 ret = ocfs2_grow_tree(handle, et, &depth, &last_eb_bh, in ocfs2_split_tree()
5334 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_tree()
5343 static int ocfs2_truncate_rec(handle_t *handle, in ocfs2_truncate_rec() argument
5360 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_truncate_rec()
5361 handle->h_buffer_credits, in ocfs2_truncate_rec()
5368 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_truncate_rec()
5429 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_truncate_rec()
5430 handle->h_buffer_credits, in ocfs2_truncate_rec()
5437 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_truncate_rec()
5443 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_truncate_rec()
5465 ocfs2_adjust_rightmost_records(handle, et, path, in ocfs2_truncate_rec()
5477 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_truncate_rec()
5492 ocfs2_complete_edge_insert(handle, left_path, path, in ocfs2_truncate_rec()
5496 ocfs2_journal_dirty(handle, path_leaf_bh(path)); in ocfs2_truncate_rec()
5498 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_truncate_rec()
5507 int ocfs2_remove_extent(handle_t *handle, in ocfs2_remove_extent() argument
5577 ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, in ocfs2_remove_extent()
5584 ret = ocfs2_split_tree(handle, et, path, index, in ocfs2_remove_extent()
5631 ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, in ocfs2_remove_extent()
5703 handle_t *handle; in ocfs2_remove_btree_range() local
5748 handle = ocfs2_start_trans(osb, in ocfs2_remove_btree_range()
5750 if (IS_ERR(handle)) { in ocfs2_remove_btree_range()
5751 ret = PTR_ERR(handle); in ocfs2_remove_btree_range()
5756 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_remove_btree_range()
5766 ret = ocfs2_remove_extent(handle, et, cpos, len, meta_ac, dealloc); in ocfs2_remove_btree_range()
5773 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_remove_btree_range()
5775 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_remove_btree_range()
5779 ret = ocfs2_decrease_refcount(inode, handle, in ocfs2_remove_btree_range()
5785 ret = ocfs2_truncate_log_append(osb, handle, in ocfs2_remove_btree_range()
5793 ocfs2_commit_trans(osb, handle); in ocfs2_remove_btree_range()
5840 handle_t *handle, in ocfs2_truncate_log_append() argument
5880 status = ocfs2_journal_access_di(handle, INODE_CACHE(tl_inode), tl_bh, in ocfs2_truncate_log_append()
5908 ocfs2_journal_dirty(handle, tl_bh); in ocfs2_truncate_log_append()
5928 handle_t *handle; in ocfs2_replay_truncate_records() local
5934 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_FLUSH_ONE_REC); in ocfs2_replay_truncate_records()
5935 if (IS_ERR(handle)) { in ocfs2_replay_truncate_records()
5936 status = PTR_ERR(handle); in ocfs2_replay_truncate_records()
5943 status = ocfs2_journal_access_di(handle, INODE_CACHE(tl_inode), tl_bh, in ocfs2_replay_truncate_records()
5952 ocfs2_journal_dirty(handle, tl_bh); in ocfs2_replay_truncate_records()
5966 status = ocfs2_free_clusters(handle, data_alloc_inode, in ocfs2_replay_truncate_records()
5975 ocfs2_commit_trans(osb, handle); in ocfs2_replay_truncate_records()
6252 handle_t *handle; in ocfs2_complete_truncate_log_recovery() local
6277 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in ocfs2_complete_truncate_log_recovery()
6278 if (IS_ERR(handle)) { in ocfs2_complete_truncate_log_recovery()
6279 status = PTR_ERR(handle); in ocfs2_complete_truncate_log_recovery()
6288 status = ocfs2_truncate_log_append(osb, handle, in ocfs2_complete_truncate_log_recovery()
6290 ocfs2_commit_trans(osb, handle); in ocfs2_complete_truncate_log_recovery()
6393 handle_t *handle; in ocfs2_free_cached_blocks() local
6419 handle = ocfs2_start_trans(osb, OCFS2_SUBALLOC_FREE); in ocfs2_free_cached_blocks()
6420 if (IS_ERR(handle)) { in ocfs2_free_cached_blocks()
6421 ret = PTR_ERR(handle); in ocfs2_free_cached_blocks()
6429 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks()
6434 ocfs2_commit_trans(osb, handle); in ocfs2_free_cached_blocks()
6486 handle_t *handle; in ocfs2_free_cached_clusters() local
6500 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in ocfs2_free_cached_clusters()
6501 if (IS_ERR(handle)) { in ocfs2_free_cached_clusters()
6502 ret = PTR_ERR(handle); in ocfs2_free_cached_clusters()
6507 ret = ocfs2_truncate_log_append(osb, handle, head->free_blk, in ocfs2_free_cached_clusters()
6510 ocfs2_commit_trans(osb, handle); in ocfs2_free_cached_clusters()
6652 static int ocfs2_reuse_blk_from_dealloc(handle_t *handle, in ocfs2_reuse_blk_from_dealloc() argument
6704 status = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_reuse_blk_from_dealloc()
6730 ocfs2_journal_dirty(handle, new_eb_bh[i]); in ocfs2_reuse_blk_from_dealloc()
6798 static int ocfs2_zero_func(handle_t *handle, struct buffer_head *bh) in ocfs2_zero_func() argument
6805 void ocfs2_map_and_dirty_page(struct inode *inode, handle_t *handle, in ocfs2_map_and_dirty_page() argument
6825 ret = walk_page_buffers(handle, page_buffers(page), in ocfs2_map_and_dirty_page()
6831 ret = ocfs2_jbd2_inode_add_write(handle, inode, in ocfs2_map_and_dirty_page()
6845 int numpages, u64 phys, handle_t *handle) in ocfs2_zero_cluster_pages() argument
6868 ocfs2_map_and_dirty_page(inode, handle, from, to, page, 1, in ocfs2_zero_cluster_pages()
6935 int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, in ocfs2_zero_range_for_truncate() argument
6985 numpages, phys, handle); in ocfs2_zero_range_for_truncate()
7054 handle_t *handle; in ocfs2_convert_inline_data_to_extents() local
7074 handle = ocfs2_start_trans(osb, in ocfs2_convert_inline_data_to_extents()
7076 if (IS_ERR(handle)) { in ocfs2_convert_inline_data_to_extents()
7077 ret = PTR_ERR(handle); in ocfs2_convert_inline_data_to_extents()
7082 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents()
7102 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_convert_inline_data_to_extents()
7134 ocfs2_map_and_dirty_page(inode, handle, 0, page_end, page, 0, in ocfs2_convert_inline_data_to_extents()
7143 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_convert_inline_data_to_extents()
7146 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents()
7155 ret = ocfs2_insert_extent(handle, &et, 0, block, 1, 0, NULL); in ocfs2_convert_inline_data_to_extents()
7176 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_convert_inline_data_to_extents()
7179 ocfs2_free_clusters(handle, in ocfs2_convert_inline_data_to_extents()
7186 ocfs2_commit_trans(osb, handle); in ocfs2_convert_inline_data_to_extents()
7379 handle_t *handle; in ocfs2_truncate_inline() local
7406 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_truncate_inline()
7407 if (IS_ERR(handle)) { in ocfs2_truncate_inline()
7408 ret = PTR_ERR(handle); in ocfs2_truncate_inline()
7413 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_truncate_inline()
7440 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_truncate_inline()
7441 ocfs2_journal_dirty(handle, di_bh); in ocfs2_truncate_inline()
7444 ocfs2_commit_trans(osb, handle); in ocfs2_truncate_inline()