Lines Matching defs:handle
51 static int __ocfs2_move_extent(handle_t *handle,
65 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos,
110 ret = ocfs2_split_extent(handle, &context->et, path, index,
125 ret = ocfs2_decrease_refcount(inode, handle,
131 ret = ocfs2_truncate_log_append(osb, handle,
135 ocfs2_update_inode_fsync_trans(handle, inode, 0);
191 * Using one journal handle to guarantee the data consistency in case
201 handle_t *handle;
274 handle = ocfs2_start_trans(osb, credits);
275 if (IS_ERR(handle)) {
276 ret = PTR_ERR(handle);
281 ret = __ocfs2_claim_clusters(handle, context->data_ac, 1, *len,
307 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos,
328 ocfs2_free_local_alloc_bits(osb, handle, data_ac,
331 ocfs2_free_clusters(handle,
338 ocfs2_commit_trans(osb, handle);
569 handle_t *handle;
644 handle = ocfs2_start_trans(osb, credits);
645 if (IS_ERR(handle)) {
646 ret = PTR_ERR(handle);
674 ret = __ocfs2_move_extent(handle, context, cpos, len, phys_cpos,
682 ret = ocfs2_alloc_dinode_update_counts(gb_inode, handle, gb_bh, len,
689 ret = ocfs2_block_group_set_bits(handle, gb_inode, gd, gd_bh,
706 ocfs2_commit_trans(osb, handle);
898 handle_t *handle;
940 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
941 if (IS_ERR(handle)) {
942 status = PTR_ERR(handle);
947 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
958 ocfs2_update_inode_fsync_trans(handle, inode, 0);
960 ocfs2_journal_dirty(handle, di_bh);
963 ocfs2_commit_trans(osb, handle);