Lines Matching defs:handle

256 	handle_t *handle;
259 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
260 if (IS_ERR(handle)) {
261 ret = PTR_ERR(handle);
266 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
281 ocfs2_update_inode_fsync_trans(handle, inode, 0);
282 ocfs2_journal_dirty(handle, bh);
285 ocfs2_commit_trans(osb, handle);
290 int ocfs2_set_inode_size(handle_t *handle,
301 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh);
317 handle_t *handle = NULL;
319 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
320 if (IS_ERR(handle)) {
321 ret = PTR_ERR(handle);
326 ret = ocfs2_set_inode_size(handle, inode, di_bh,
331 ocfs2_update_inode_fsync_trans(handle, inode, 0);
332 ocfs2_commit_trans(osb, handle);
376 handle_t *handle;
394 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
395 if (IS_ERR(handle)) {
396 status = PTR_ERR(handle);
401 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh,
412 status = ocfs2_zero_range_for_truncate(inode, handle, new_i_size,
426 ocfs2_update_inode_fsync_trans(handle, inode, 0);
428 ocfs2_journal_dirty(handle, fe_bh);
431 ocfs2_commit_trans(osb, handle);
540 handle_t *handle,
548 return ocfs2_add_clusters_in_btree(handle, &et, logical_offset,
562 handle_t *handle = NULL;
595 handle = ocfs2_start_trans(osb, credits);
596 if (IS_ERR(handle)) {
597 status = PTR_ERR(handle);
598 handle = NULL;
619 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
634 handle,
643 ocfs2_update_inode_fsync_trans(handle, inode, 1);
644 ocfs2_journal_dirty(handle, bh);
661 status = ocfs2_allocate_extend_trans(handle, 1);
663 /* handle still has to be committed at
683 if (handle) {
684 ocfs2_commit_trans(osb, handle);
685 handle = NULL;
715 handle_t *handle = NULL;
721 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
722 if (IS_ERR(handle)) {
728 ret = ocfs2_jbd2_inode_add_write(handle, inode, start_byte, length);
734 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh,
738 ocfs2_update_inode_fsync_trans(handle, inode, 1);
742 if (!IS_ERR(handle))
743 ocfs2_commit_trans(osb, handle);
744 handle = ERR_PTR(ret);
746 return handle;
758 handle_t *handle;
767 handle = ocfs2_zero_start_ordered_transaction(inode, di_bh,
770 if (IS_ERR(handle)) {
771 ret = PTR_ERR(handle);
828 if (handle) {
829 ocfs2_journal_dirty(handle, di_bh);
830 ocfs2_update_inode_fsync_trans(handle, inode, 1);
837 if (handle)
838 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle);
1120 handle_t *handle = NULL;
1245 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS +
1247 if (IS_ERR(handle)) {
1248 status = PTR_ERR(handle);
1257 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1258 if (IS_ERR(handle)) {
1259 status = PTR_ERR(handle);
1268 status = ocfs2_mark_inode_dirty(handle, inode, bh);
1273 ocfs2_commit_trans(osb, handle);
1371 handle_t *handle;
1379 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1380 if (IS_ERR(handle)) {
1381 ret = PTR_ERR(handle);
1386 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
1399 ocfs2_update_inode_fsync_trans(handle, inode, 0);
1401 ocfs2_journal_dirty(handle, bh);
1404 ocfs2_commit_trans(osb, handle);
1577 handle_t *handle;
1619 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1620 if (IS_ERR(handle)) {
1621 ret = PTR_ERR(handle);
1647 ret = ocfs2_zero_range_for_truncate(inode, handle, start,
1664 ret = ocfs2_zero_range_for_truncate(inode, handle, start, end);
1668 ocfs2_update_inode_fsync_trans(handle, inode, 1);
1670 ocfs2_commit_trans(osb, handle);
1692 * Helper to calculate the punching pos and length in one run, we handle the
1929 handle_t *handle;
2036 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
2037 if (IS_ERR(handle)) {
2038 ret = PTR_ERR(handle);
2044 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh);
2049 handle->h_sync = 1;
2051 ocfs2_commit_trans(osb, handle);
2816 * ocfs2_flock is in here because all stacks handle UNIX file locks,