Lines Matching refs:handle

264 	handle_t *handle;  in ocfs2_update_inode_atime()  local
267 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
268 if (IS_ERR(handle)) { in ocfs2_update_inode_atime()
269 ret = PTR_ERR(handle); in ocfs2_update_inode_atime()
274 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime()
289 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_update_inode_atime()
290 ocfs2_journal_dirty(handle, bh); in ocfs2_update_inode_atime()
293 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_update_inode_atime()
298 int ocfs2_set_inode_size(handle_t *handle, in ocfs2_set_inode_size() argument
309 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_set_inode_size()
325 handle_t *handle = NULL; in ocfs2_simple_size_update() local
327 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
328 if (IS_ERR(handle)) { in ocfs2_simple_size_update()
329 ret = PTR_ERR(handle); in ocfs2_simple_size_update()
334 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
339 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_simple_size_update()
340 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
384 handle_t *handle; in ocfs2_orphan_for_truncate() local
402 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
403 if (IS_ERR(handle)) { in ocfs2_orphan_for_truncate()
404 status = PTR_ERR(handle); in ocfs2_orphan_for_truncate()
409 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_orphan_for_truncate()
420 status = ocfs2_zero_range_for_truncate(inode, handle, new_i_size, in ocfs2_orphan_for_truncate()
434 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_orphan_for_truncate()
436 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_orphan_for_truncate()
439 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
544 handle_t *handle, in ocfs2_add_inode_data() argument
553 ret = ocfs2_add_clusters_in_btree(handle, &et, logical_offset, in ocfs2_add_inode_data()
569 handle_t *handle = NULL; in __ocfs2_extend_allocation() local
602 handle = ocfs2_start_trans(osb, credits); in __ocfs2_extend_allocation()
603 if (IS_ERR(handle)) { in __ocfs2_extend_allocation()
604 status = PTR_ERR(handle); in __ocfs2_extend_allocation()
605 handle = NULL; in __ocfs2_extend_allocation()
626 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in __ocfs2_extend_allocation()
641 handle, in __ocfs2_extend_allocation()
650 ocfs2_update_inode_fsync_trans(handle, inode, 1); in __ocfs2_extend_allocation()
651 ocfs2_journal_dirty(handle, bh); in __ocfs2_extend_allocation()
668 status = ocfs2_allocate_extend_trans(handle, 1); in __ocfs2_extend_allocation()
690 if (handle) { in __ocfs2_extend_allocation()
691 ocfs2_commit_trans(osb, handle); in __ocfs2_extend_allocation()
692 handle = NULL; in __ocfs2_extend_allocation()
727 handle_t *handle = NULL; in ocfs2_zero_start_ordered_transaction() local
733 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
734 if (IS_ERR(handle)) { in ocfs2_zero_start_ordered_transaction()
740 ret = ocfs2_jbd2_file_inode(handle, inode); in ocfs2_zero_start_ordered_transaction()
746 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
750 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_zero_start_ordered_transaction()
754 if (!IS_ERR(handle)) in ocfs2_zero_start_ordered_transaction()
755 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
756 handle = ERR_PTR(ret); in ocfs2_zero_start_ordered_transaction()
758 return handle; in ocfs2_zero_start_ordered_transaction()
770 handle_t *handle; in ocfs2_write_zero_page() local
779 handle = ocfs2_zero_start_ordered_transaction(inode, di_bh); in ocfs2_write_zero_page()
780 if (IS_ERR(handle)) { in ocfs2_write_zero_page()
781 ret = PTR_ERR(handle); in ocfs2_write_zero_page()
843 if (handle) { in ocfs2_write_zero_page()
844 ocfs2_journal_dirty(handle, di_bh); in ocfs2_write_zero_page()
845 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_write_zero_page()
852 if (handle) in ocfs2_write_zero_page()
853 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_write_zero_page()
1133 handle_t *handle = NULL; in ocfs2_setattr() local
1225 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1227 if (IS_ERR(handle)) { in ocfs2_setattr()
1228 status = PTR_ERR(handle); in ocfs2_setattr()
1236 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1237 if (IS_ERR(handle)) { in ocfs2_setattr()
1238 status = PTR_ERR(handle); in ocfs2_setattr()
1247 status = ocfs2_mark_inode_dirty(handle, inode, bh); in ocfs2_setattr()
1252 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1324 handle_t *handle; in __ocfs2_write_remove_suid() local
1332 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1333 if (IS_ERR(handle)) { in __ocfs2_write_remove_suid()
1334 ret = PTR_ERR(handle); in __ocfs2_write_remove_suid()
1339 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in __ocfs2_write_remove_suid()
1352 ocfs2_update_inode_fsync_trans(handle, inode, 0); in __ocfs2_write_remove_suid()
1354 ocfs2_journal_dirty(handle, bh); in __ocfs2_write_remove_suid()
1357 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1528 handle_t *handle; in ocfs2_zero_partial_clusters() local
1549 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1550 if (IS_ERR(handle)) { in ocfs2_zero_partial_clusters()
1551 ret = PTR_ERR(handle); in ocfs2_zero_partial_clusters()
1566 ret = ocfs2_zero_range_for_truncate(inode, handle, start, tmpend); in ocfs2_zero_partial_clusters()
1581 ret = ocfs2_zero_range_for_truncate(inode, handle, start, end); in ocfs2_zero_partial_clusters()
1585 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_zero_partial_clusters()
1587 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1847 handle_t *handle; in __ocfs2_change_file_space() local
1945 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
1946 if (IS_ERR(handle)) { in __ocfs2_change_file_space()
1947 ret = PTR_ERR(handle); in __ocfs2_change_file_space()
1956 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in __ocfs2_change_file_space()
1961 handle->h_sync = 1; in __ocfs2_change_file_space()
1963 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()