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()
997 static int ocfs2_create_new_meta_bhs(handle_t *handle, in ocfs2_create_new_meta_bhs() argument
1013 status = ocfs2_claim_metadata(handle, in ocfs2_create_new_meta_bhs()
1034 status = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_create_new_meta_bhs()
1060 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs()
1104 static int ocfs2_adjust_rightmost_branch(handle_t *handle, in ocfs2_adjust_rightmost_branch() argument
1124 status = ocfs2_extend_trans(handle, path_num_items(path)); in ocfs2_adjust_rightmost_branch()
1130 status = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_adjust_rightmost_branch()
1139 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_adjust_rightmost_branch()
1157 static int ocfs2_add_branch(handle_t *handle, in ocfs2_add_branch() argument
1202 status = ocfs2_adjust_rightmost_branch(handle, et); in ocfs2_add_branch()
1218 status = ocfs2_create_new_meta_bhs(handle, et, new_blocks, in ocfs2_add_branch()
1240 status = ocfs2_journal_access_eb(handle, et->et_ci, bh, in ocfs2_add_branch()
1265 ocfs2_journal_dirty(handle, bh); in ocfs2_add_branch()
1275 status = ocfs2_journal_access_eb(handle, et->et_ci, *last_eb_bh, in ocfs2_add_branch()
1281 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_add_branch()
1288 status = ocfs2_journal_access_eb(handle, et->et_ci, eb_bh, in ocfs2_add_branch()
1311 ocfs2_journal_dirty(handle, *last_eb_bh); in ocfs2_add_branch()
1312 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_add_branch()
1314 ocfs2_journal_dirty(handle, eb_bh); in ocfs2_add_branch()
1340 static int ocfs2_shift_tree_depth(handle_t *handle, in ocfs2_shift_tree_depth() argument
1352 status = ocfs2_create_new_meta_bhs(handle, et, 1, meta_ac, in ocfs2_shift_tree_depth()
1366 status = ocfs2_journal_access_eb(handle, et->et_ci, new_eb_bh, in ocfs2_shift_tree_depth()
1379 ocfs2_journal_dirty(handle, new_eb_bh); in ocfs2_shift_tree_depth()
1381 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_shift_tree_depth()
1404 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_shift_tree_depth()
1510 static int ocfs2_grow_tree(handle_t *handle, struct ocfs2_extent_tree *et, in ocfs2_grow_tree() argument
1541 ret = ocfs2_shift_tree_depth(handle, et, meta_ac, &bh); in ocfs2_grow_tree()
1566 ret = ocfs2_add_branch(handle, et, bh, last_eb_bh, in ocfs2_grow_tree()
2030 static void ocfs2_complete_edge_insert(handle_t *handle, in ocfs2_complete_edge_insert() argument
2073 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2074 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2098 ocfs2_journal_dirty(handle, root_bh); in ocfs2_complete_edge_insert()
2101 static int ocfs2_rotate_subtree_right(handle_t *handle, in ocfs2_rotate_subtree_right() argument
2137 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2145 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_right()
2152 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_right()
2171 ocfs2_journal_dirty(handle, right_leaf_bh); in ocfs2_rotate_subtree_right()
2190 ocfs2_journal_dirty(handle, left_leaf_bh); in ocfs2_rotate_subtree_right()
2192 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2279 static int ocfs2_extend_rotate_transaction(handle_t *handle, int subtree_depth, in ocfs2_extend_rotate_transaction() argument
2286 if (handle->h_buffer_credits < credits) in ocfs2_extend_rotate_transaction()
2287 ret = ocfs2_extend_trans(handle, in ocfs2_extend_rotate_transaction()
2288 credits - handle->h_buffer_credits); in ocfs2_extend_rotate_transaction()
2358 static int ocfs2_rotate_tree_right(handle_t *handle, in ocfs2_rotate_tree_right() argument
2365 int ret, start, orig_credits = handle->h_buffer_credits; in ocfs2_rotate_tree_right()
2466 ret = ocfs2_extend_rotate_transaction(handle, start, in ocfs2_rotate_tree_right()
2473 ret = ocfs2_rotate_subtree_right(handle, et, left_path, in ocfs2_rotate_tree_right()
2519 static int ocfs2_update_edge_lengths(handle_t *handle, in ocfs2_update_edge_lengths() argument
2538 ret = ocfs2_extend_trans(handle, subtree_index); in ocfs2_update_edge_lengths()
2544 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_update_edge_lengths()
2568 ocfs2_journal_dirty(handle, path->p_node[i].bh); in ocfs2_update_edge_lengths()
2574 static void ocfs2_unlink_path(handle_t *handle, in ocfs2_unlink_path() argument
2601 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2609 ocfs2_journal_dirty(handle, bh); in ocfs2_unlink_path()
2619 static void ocfs2_unlink_subtree(handle_t *handle, in ocfs2_unlink_subtree() argument
2648 ocfs2_journal_dirty(handle, root_bh); in ocfs2_unlink_subtree()
2649 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_unlink_subtree()
2651 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2655 static int ocfs2_rotate_subtree_left(handle_t *handle, in ocfs2_rotate_subtree_left() argument
2697 ret = ocfs2_journal_access_eb(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2716 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_rotate_subtree_left()
2732 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2740 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2747 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_rotate_subtree_left()
2776 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_rotate_subtree_left()
2777 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2780 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2782 ret = ocfs2_update_edge_lengths(handle, et, subtree_index, in ocfs2_rotate_subtree_left()
2800 ocfs2_journal_dirty(handle, et_root_bh); in ocfs2_rotate_subtree_left()
2804 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2890 static int ocfs2_rotate_rightmost_leaf_left(handle_t *handle, in ocfs2_rotate_rightmost_leaf_left() argument
2901 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, in ocfs2_rotate_rightmost_leaf_left()
2909 ocfs2_journal_dirty(handle, bh); in ocfs2_rotate_rightmost_leaf_left()
2915 static int __ocfs2_rotate_tree_left(handle_t *handle, in __ocfs2_rotate_tree_left() argument
2969 ret = ocfs2_extend_rotate_transaction(handle, subtree_root, in __ocfs2_rotate_tree_left()
2980 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in __ocfs2_rotate_tree_left()
2987 ret = ocfs2_rotate_subtree_left(handle, et, left_path, in __ocfs2_rotate_tree_left()
3031 static int ocfs2_remove_rightmost_path(handle_t *handle, in ocfs2_remove_rightmost_path() argument
3050 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_remove_rightmost_path()
3051 handle->h_buffer_credits, in ocfs2_remove_rightmost_path()
3058 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_remove_rightmost_path()
3089 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_remove_rightmost_path()
3097 ocfs2_unlink_subtree(handle, et, left_path, path, in ocfs2_remove_rightmost_path()
3099 ret = ocfs2_update_edge_lengths(handle, et, subtree_index, in ocfs2_remove_rightmost_path()
3116 ocfs2_unlink_path(handle, et, dealloc, path, 1); in ocfs2_remove_rightmost_path()
3126 ocfs2_journal_dirty(handle, path_root_bh(path)); in ocfs2_remove_rightmost_path()
3149 static int ocfs2_rotate_tree_left(handle_t *handle, in ocfs2_rotate_tree_left() argument
3154 int ret, orig_credits = handle->h_buffer_credits; in ocfs2_rotate_tree_left()
3169 ret = ocfs2_rotate_rightmost_leaf_left(handle, et, path); in ocfs2_rotate_tree_left()
3217 ret = ocfs2_remove_rightmost_path(handle, et, path, in ocfs2_rotate_tree_left()
3229 ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, path, in ocfs2_rotate_tree_left()
3240 ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, in ocfs2_rotate_tree_left()
3348 handle_t *handle, in ocfs2_merge_rec_right() argument
3392 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_right()
3393 handle->h_buffer_credits, in ocfs2_merge_rec_right()
3403 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3412 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_right()
3419 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_right()
3432 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path, in ocfs2_merge_rec_right()
3449 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_right()
3451 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3452 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3514 handle_t *handle, in ocfs2_merge_rec_left() argument
3554 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_left()
3555 handle->h_buffer_credits, in ocfs2_merge_rec_left()
3565 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3574 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_left()
3581 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, in ocfs2_merge_rec_left()
3594 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3619 ocfs2_journal_dirty(handle, bh); in ocfs2_merge_rec_left()
3621 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_merge_rec_left()
3631 ret = ocfs2_remove_rightmost_path(handle, et, in ocfs2_merge_rec_left()
3645 ocfs2_complete_edge_insert(handle, left_path, in ocfs2_merge_rec_left()
3653 static int ocfs2_try_to_merge_extent(handle_t *handle, in ocfs2_try_to_merge_extent() argument
3675 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3704 ret = ocfs2_merge_rec_right(path, handle, et, split_rec, in ocfs2_try_to_merge_extent()
3717 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3729 ret = ocfs2_merge_rec_left(path, handle, et, rec, in ocfs2_try_to_merge_extent()
3737 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_try_to_merge_extent()
3754 ret = ocfs2_merge_rec_left(path, handle, et, in ocfs2_try_to_merge_extent()
3762 ret = ocfs2_merge_rec_right(path, handle, in ocfs2_try_to_merge_extent()
3776 ret = ocfs2_rotate_tree_left(handle, et, path, in ocfs2_try_to_merge_extent()
3912 static void ocfs2_adjust_rightmost_records(handle_t *handle, in ocfs2_adjust_rightmost_records() argument
3946 ocfs2_journal_dirty(handle, bh); in ocfs2_adjust_rightmost_records()
3950 static int ocfs2_append_rec_to_path(handle_t *handle, in ocfs2_append_rec_to_path() argument
4018 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4024 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4121 static int ocfs2_insert_path(handle_t *handle, in ocfs2_insert_path() argument
4138 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth); in ocfs2_insert_path()
4144 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_insert_path()
4155 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4176 ocfs2_journal_dirty(handle, in ocfs2_insert_path()
4182 ocfs2_journal_dirty(handle, leaf_bh); in ocfs2_insert_path()
4193 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4202 static int ocfs2_do_insert_extent(handle_t *handle, in ocfs2_do_insert_extent() argument
4215 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_do_insert_extent()
4265 ret = ocfs2_rotate_tree_right(handle, et, type->ins_split, in ocfs2_do_insert_extent()
4277 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_do_insert_extent()
4285 ret = ocfs2_append_rec_to_path(handle, et, insert_rec, in ocfs2_do_insert_extent()
4293 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4305 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_do_insert_extent()
4662 int ocfs2_insert_extent(handle_t *handle, in ocfs2_insert_extent() argument
4703 status = ocfs2_grow_tree(handle, et, in ocfs2_insert_extent()
4713 status = ocfs2_do_insert_extent(handle, et, &rec, &insert); in ocfs2_insert_extent()
4732 int ocfs2_add_clusters_in_btree(handle_t *handle, in ocfs2_add_clusters_in_btree() argument
4782 status = __ocfs2_claim_clusters(handle, data_ac, 1, in ocfs2_add_clusters_in_btree()
4793 status = ocfs2_et_root_journal_access(handle, et, in ocfs2_add_clusters_in_btree()
4805 status = ocfs2_insert_extent(handle, et, *logical_offset, block, in ocfs2_add_clusters_in_btree()
4813 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_add_clusters_in_btree()
4827 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_add_clusters_in_btree()
4830 ocfs2_free_clusters(handle, in ocfs2_add_clusters_in_btree()
4864 static int ocfs2_split_and_insert(handle_t *handle, in ocfs2_split_and_insert() argument
4899 ret = ocfs2_grow_tree(handle, et, in ocfs2_split_and_insert()
4937 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_and_insert()
4977 static int ocfs2_replace_extent_rec(handle_t *handle, in ocfs2_replace_extent_rec() argument
4986 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, in ocfs2_replace_extent_rec()
4995 ocfs2_journal_dirty(handle, path_leaf_bh(path)); in ocfs2_replace_extent_rec()
5019 int ocfs2_split_extent(handle_t *handle, in ocfs2_split_extent() argument
5081 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5084 ret = ocfs2_split_and_insert(handle, et, path, in ocfs2_split_extent()
5090 ret = ocfs2_try_to_merge_extent(handle, et, path, in ocfs2_split_extent()
5114 int ocfs2_change_extent_flag(handle_t *handle, in ocfs2_change_extent_flag() argument
5182 ret = ocfs2_split_extent(handle, et, left_path, in ocfs2_change_extent_flag()
5205 handle_t *handle, u32 cpos, u32 len, u32 phys, in ocfs2_mark_extent_written() argument
5230 ret = ocfs2_change_extent_flag(handle, et, cpos, in ocfs2_mark_extent_written()
5240 static int ocfs2_split_tree(handle_t *handle, struct ocfs2_extent_tree *et, in ocfs2_split_tree() argument
5278 ret = ocfs2_extend_trans(handle, credits); in ocfs2_split_tree()
5286 ret = ocfs2_grow_tree(handle, et, &depth, &last_eb_bh, in ocfs2_split_tree()
5300 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_tree()
5309 static int ocfs2_truncate_rec(handle_t *handle, in ocfs2_truncate_rec() argument
5325 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_truncate_rec()
5386 ret = ocfs2_extend_rotate_transaction(handle, 0, in ocfs2_truncate_rec()
5387 handle->h_buffer_credits, in ocfs2_truncate_rec()
5394 ret = ocfs2_journal_access_path(et->et_ci, handle, path); in ocfs2_truncate_rec()
5400 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_truncate_rec()
5423 ocfs2_adjust_rightmost_records(handle, et, path, in ocfs2_truncate_rec()
5435 ocfs2_adjust_rightmost_records(handle, et, path, rec); in ocfs2_truncate_rec()
5450 ocfs2_complete_edge_insert(handle, left_path, path, in ocfs2_truncate_rec()
5454 ocfs2_journal_dirty(handle, path_leaf_bh(path)); in ocfs2_truncate_rec()
5456 ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); in ocfs2_truncate_rec()
5467 int ocfs2_remove_extent(handle_t *handle, in ocfs2_remove_extent() argument
5538 ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, in ocfs2_remove_extent()
5545 ret = ocfs2_split_tree(handle, et, path, index, in ocfs2_remove_extent()
5593 ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, in ocfs2_remove_extent()
5668 handle_t *handle; in ocfs2_remove_btree_range() local
5714 handle = ocfs2_start_trans(osb, in ocfs2_remove_btree_range()
5716 if (IS_ERR(handle)) { in ocfs2_remove_btree_range()
5717 ret = PTR_ERR(handle); in ocfs2_remove_btree_range()
5722 ret = ocfs2_et_root_journal_access(handle, et, in ocfs2_remove_btree_range()
5732 ret = ocfs2_remove_extent(handle, et, cpos, len, meta_ac, dealloc); in ocfs2_remove_btree_range()
5739 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_remove_btree_range()
5741 ocfs2_journal_dirty(handle, et->et_root_bh); in ocfs2_remove_btree_range()
5745 ret = ocfs2_decrease_refcount(inode, handle, in ocfs2_remove_btree_range()
5751 ret = ocfs2_truncate_log_append(osb, handle, in ocfs2_remove_btree_range()
5759 ocfs2_commit_trans(osb, handle); in ocfs2_remove_btree_range()
5806 handle_t *handle, in ocfs2_truncate_log_append() argument
5846 status = ocfs2_journal_access_di(handle, INODE_CACHE(tl_inode), tl_bh, in ocfs2_truncate_log_append()
5874 ocfs2_journal_dirty(handle, tl_bh); in ocfs2_truncate_log_append()
5882 handle_t *handle, in ocfs2_replay_truncate_records() argument
5902 status = ocfs2_journal_access_di(handle, INODE_CACHE(tl_inode), tl_bh, in ocfs2_replay_truncate_records()
5911 ocfs2_journal_dirty(handle, tl_bh); in ocfs2_replay_truncate_records()
5916 status = ocfs2_extend_trans(handle, in ocfs2_replay_truncate_records()
5935 status = ocfs2_free_clusters(handle, data_alloc_inode, in ocfs2_replay_truncate_records()
5957 handle_t *handle; in __ocfs2_flush_truncate_log() local
6001 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in __ocfs2_flush_truncate_log()
6002 if (IS_ERR(handle)) { in __ocfs2_flush_truncate_log()
6003 status = PTR_ERR(handle); in __ocfs2_flush_truncate_log()
6008 status = ocfs2_replay_truncate_records(osb, handle, data_alloc_inode, in __ocfs2_flush_truncate_log()
6013 ocfs2_commit_trans(osb, handle); in __ocfs2_flush_truncate_log()
6179 handle_t *handle; in ocfs2_complete_truncate_log_recovery() local
6204 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in ocfs2_complete_truncate_log_recovery()
6205 if (IS_ERR(handle)) { in ocfs2_complete_truncate_log_recovery()
6206 status = PTR_ERR(handle); in ocfs2_complete_truncate_log_recovery()
6215 status = ocfs2_truncate_log_append(osb, handle, in ocfs2_complete_truncate_log_recovery()
6217 ocfs2_commit_trans(osb, handle); in ocfs2_complete_truncate_log_recovery()
6320 handle_t *handle; in ocfs2_free_cached_blocks() local
6340 handle = ocfs2_start_trans(osb, OCFS2_SUBALLOC_FREE); in ocfs2_free_cached_blocks()
6341 if (IS_ERR(handle)) { in ocfs2_free_cached_blocks()
6342 ret = PTR_ERR(handle); in ocfs2_free_cached_blocks()
6356 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks()
6363 ret = ocfs2_extend_trans(handle, OCFS2_SUBALLOC_FREE); in ocfs2_free_cached_blocks()
6375 ocfs2_commit_trans(osb, handle); in ocfs2_free_cached_blocks()
6422 handle_t *handle; in ocfs2_free_cached_clusters() local
6436 handle = ocfs2_start_trans(osb, OCFS2_TRUNCATE_LOG_UPDATE); in ocfs2_free_cached_clusters()
6437 if (IS_ERR(handle)) { in ocfs2_free_cached_clusters()
6438 ret = PTR_ERR(handle); in ocfs2_free_cached_clusters()
6443 ret = ocfs2_truncate_log_append(osb, handle, head->free_blk, in ocfs2_free_cached_clusters()
6446 ocfs2_commit_trans(osb, handle); in ocfs2_free_cached_clusters()
6586 static int ocfs2_zero_func(handle_t *handle, struct buffer_head *bh) in ocfs2_zero_func() argument
6593 void ocfs2_map_and_dirty_page(struct inode *inode, handle_t *handle, in ocfs2_map_and_dirty_page() argument
6611 ret = walk_page_buffers(handle, page_buffers(page), in ocfs2_map_and_dirty_page()
6617 ret = ocfs2_jbd2_file_inode(handle, inode); in ocfs2_map_and_dirty_page()
6630 int numpages, u64 phys, handle_t *handle) in ocfs2_zero_cluster_pages() argument
6653 ocfs2_map_and_dirty_page(inode, handle, from, to, page, 1, in ocfs2_zero_cluster_pages()
6720 int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, in ocfs2_zero_range_for_truncate() argument
6770 numpages, phys, handle); in ocfs2_zero_range_for_truncate()
6839 handle_t *handle; in ocfs2_convert_inline_data_to_extents() local
6868 handle = ocfs2_start_trans(osb, in ocfs2_convert_inline_data_to_extents()
6870 if (IS_ERR(handle)) { in ocfs2_convert_inline_data_to_extents()
6871 ret = PTR_ERR(handle); in ocfs2_convert_inline_data_to_extents()
6876 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents()
6895 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off, in ocfs2_convert_inline_data_to_extents()
6939 ocfs2_map_and_dirty_page(inode, handle, 0, page_end, in ocfs2_convert_inline_data_to_extents()
6948 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_convert_inline_data_to_extents()
6951 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents()
6960 ret = ocfs2_insert_extent(handle, &et, 0, block, 1, 0, NULL); in ocfs2_convert_inline_data_to_extents()
6981 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_convert_inline_data_to_extents()
6984 ocfs2_free_clusters(handle, in ocfs2_convert_inline_data_to_extents()
6991 ocfs2_commit_trans(osb, handle); in ocfs2_convert_inline_data_to_extents()
7178 handle_t *handle; in ocfs2_truncate_inline() local
7202 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_truncate_inline()
7203 if (IS_ERR(handle)) { in ocfs2_truncate_inline()
7204 ret = PTR_ERR(handle); in ocfs2_truncate_inline()
7209 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_truncate_inline()
7236 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_truncate_inline()
7237 ocfs2_journal_dirty(handle, di_bh); in ocfs2_truncate_inline()
7240 ocfs2_commit_trans(osb, handle); in ocfs2_truncate_inline()