Lines Matching refs:handle
256 handle_t *handle; in ocfs2_update_inode_atime() local
259 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
260 if (IS_ERR(handle)) { in ocfs2_update_inode_atime()
261 ret = PTR_ERR(handle); in ocfs2_update_inode_atime()
266 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime()
281 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_update_inode_atime()
282 ocfs2_journal_dirty(handle, bh); in ocfs2_update_inode_atime()
285 ocfs2_commit_trans(osb, handle); in ocfs2_update_inode_atime()
290 int ocfs2_set_inode_size(handle_t *handle, in ocfs2_set_inode_size() argument
301 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_set_inode_size()
317 handle_t *handle = NULL; in ocfs2_simple_size_update() local
319 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
320 if (IS_ERR(handle)) { in ocfs2_simple_size_update()
321 ret = PTR_ERR(handle); in ocfs2_simple_size_update()
326 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
331 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_simple_size_update()
332 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
376 handle_t *handle; in ocfs2_orphan_for_truncate() local
394 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
395 if (IS_ERR(handle)) { in ocfs2_orphan_for_truncate()
396 status = PTR_ERR(handle); in ocfs2_orphan_for_truncate()
401 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_orphan_for_truncate()
412 status = ocfs2_zero_range_for_truncate(inode, handle, new_i_size, in ocfs2_orphan_for_truncate()
426 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_orphan_for_truncate()
428 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_orphan_for_truncate()
431 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
540 handle_t *handle, in ocfs2_add_inode_data() argument
549 ret = ocfs2_add_clusters_in_btree(handle, &et, logical_offset, in ocfs2_add_inode_data()
565 handle_t *handle = NULL; in ocfs2_extend_allocation() local
598 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_allocation()
599 if (IS_ERR(handle)) { in ocfs2_extend_allocation()
600 status = PTR_ERR(handle); in ocfs2_extend_allocation()
601 handle = NULL; in ocfs2_extend_allocation()
622 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_extend_allocation()
637 handle, in ocfs2_extend_allocation()
646 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_extend_allocation()
647 ocfs2_journal_dirty(handle, bh); in ocfs2_extend_allocation()
664 status = ocfs2_allocate_extend_trans(handle, 1); in ocfs2_extend_allocation()
686 if (handle) { in ocfs2_extend_allocation()
687 ocfs2_commit_trans(osb, handle); in ocfs2_extend_allocation()
688 handle = NULL; in ocfs2_extend_allocation()
718 handle_t *handle = NULL; in ocfs2_zero_start_ordered_transaction() local
724 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
725 if (IS_ERR(handle)) { in ocfs2_zero_start_ordered_transaction()
731 ret = ocfs2_jbd2_inode_add_write(handle, inode, start_byte, length); in ocfs2_zero_start_ordered_transaction()
737 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
741 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_zero_start_ordered_transaction()
745 if (!IS_ERR(handle)) in ocfs2_zero_start_ordered_transaction()
746 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
747 handle = ERR_PTR(ret); in ocfs2_zero_start_ordered_transaction()
749 return handle; in ocfs2_zero_start_ordered_transaction()
761 handle_t *handle; in ocfs2_write_zero_page() local
770 handle = ocfs2_zero_start_ordered_transaction(inode, di_bh, in ocfs2_write_zero_page()
773 if (IS_ERR(handle)) { in ocfs2_write_zero_page()
774 ret = PTR_ERR(handle); in ocfs2_write_zero_page()
836 if (handle) { in ocfs2_write_zero_page()
837 ocfs2_journal_dirty(handle, di_bh); in ocfs2_write_zero_page()
838 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_write_zero_page()
845 if (handle) in ocfs2_write_zero_page()
846 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_write_zero_page()
1127 handle_t *handle = NULL; in ocfs2_setattr() local
1252 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1254 if (IS_ERR(handle)) { in ocfs2_setattr()
1255 status = PTR_ERR(handle); in ocfs2_setattr()
1264 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1265 if (IS_ERR(handle)) { in ocfs2_setattr()
1266 status = PTR_ERR(handle); in ocfs2_setattr()
1275 status = ocfs2_mark_inode_dirty(handle, inode, bh); in ocfs2_setattr()
1280 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1377 handle_t *handle; in __ocfs2_write_remove_suid() local
1385 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1386 if (IS_ERR(handle)) { in __ocfs2_write_remove_suid()
1387 ret = PTR_ERR(handle); in __ocfs2_write_remove_suid()
1392 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in __ocfs2_write_remove_suid()
1405 ocfs2_update_inode_fsync_trans(handle, inode, 0); in __ocfs2_write_remove_suid()
1407 ocfs2_journal_dirty(handle, bh); in __ocfs2_write_remove_suid()
1410 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1583 handle_t *handle; in ocfs2_zero_partial_clusters() local
1625 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1626 if (IS_ERR(handle)) { in ocfs2_zero_partial_clusters()
1627 ret = PTR_ERR(handle); in ocfs2_zero_partial_clusters()
1653 ret = ocfs2_zero_range_for_truncate(inode, handle, start, in ocfs2_zero_partial_clusters()
1670 ret = ocfs2_zero_range_for_truncate(inode, handle, start, end); in ocfs2_zero_partial_clusters()
1674 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_zero_partial_clusters()
1676 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1935 handle_t *handle; in __ocfs2_change_file_space() local
2042 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
2043 if (IS_ERR(handle)) { in __ocfs2_change_file_space()
2044 ret = PTR_ERR(handle); in __ocfs2_change_file_space()
2050 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in __ocfs2_change_file_space()
2055 handle->h_sync = 1; in __ocfs2_change_file_space()
2057 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()