Lines Matching refs:handle

268 	handle_t *handle;  in ocfs2_update_inode_atime()  local
271 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
272 if (IS_ERR(handle)) { in ocfs2_update_inode_atime()
273 ret = PTR_ERR(handle); in ocfs2_update_inode_atime()
278 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime()
293 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_update_inode_atime()
294 ocfs2_journal_dirty(handle, bh); in ocfs2_update_inode_atime()
297 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_update_inode_atime()
302 int ocfs2_set_inode_size(handle_t *handle, in ocfs2_set_inode_size() argument
313 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); in ocfs2_set_inode_size()
329 handle_t *handle = NULL; in ocfs2_simple_size_update() local
331 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
332 if (IS_ERR(handle)) { in ocfs2_simple_size_update()
333 ret = PTR_ERR(handle); in ocfs2_simple_size_update()
338 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
343 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_simple_size_update()
344 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
388 handle_t *handle; in ocfs2_orphan_for_truncate() local
406 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
407 if (IS_ERR(handle)) { in ocfs2_orphan_for_truncate()
408 status = PTR_ERR(handle); in ocfs2_orphan_for_truncate()
413 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_orphan_for_truncate()
424 status = ocfs2_zero_range_for_truncate(inode, handle, new_i_size, in ocfs2_orphan_for_truncate()
438 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_orphan_for_truncate()
440 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_orphan_for_truncate()
443 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
548 handle_t *handle, in ocfs2_add_inode_data() argument
557 ret = ocfs2_add_clusters_in_btree(handle, &et, logical_offset, in ocfs2_add_inode_data()
573 handle_t *handle = NULL; in __ocfs2_extend_allocation() local
606 handle = ocfs2_start_trans(osb, credits); in __ocfs2_extend_allocation()
607 if (IS_ERR(handle)) { in __ocfs2_extend_allocation()
608 status = PTR_ERR(handle); in __ocfs2_extend_allocation()
609 handle = NULL; in __ocfs2_extend_allocation()
630 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in __ocfs2_extend_allocation()
645 handle, in __ocfs2_extend_allocation()
654 ocfs2_update_inode_fsync_trans(handle, inode, 1); in __ocfs2_extend_allocation()
655 ocfs2_journal_dirty(handle, bh); in __ocfs2_extend_allocation()
672 status = ocfs2_allocate_extend_trans(handle, 1); in __ocfs2_extend_allocation()
694 if (handle) { in __ocfs2_extend_allocation()
695 ocfs2_commit_trans(osb, handle); in __ocfs2_extend_allocation()
696 handle = NULL; in __ocfs2_extend_allocation()
731 handle_t *handle = NULL; in ocfs2_zero_start_ordered_transaction() local
737 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
738 if (IS_ERR(handle)) { in ocfs2_zero_start_ordered_transaction()
744 ret = ocfs2_jbd2_file_inode(handle, inode); in ocfs2_zero_start_ordered_transaction()
750 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
754 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_zero_start_ordered_transaction()
758 if (!IS_ERR(handle)) in ocfs2_zero_start_ordered_transaction()
759 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
760 handle = ERR_PTR(ret); in ocfs2_zero_start_ordered_transaction()
762 return handle; in ocfs2_zero_start_ordered_transaction()
774 handle_t *handle; in ocfs2_write_zero_page() local
783 handle = ocfs2_zero_start_ordered_transaction(inode, di_bh); in ocfs2_write_zero_page()
784 if (IS_ERR(handle)) { in ocfs2_write_zero_page()
785 ret = PTR_ERR(handle); in ocfs2_write_zero_page()
847 if (handle) { in ocfs2_write_zero_page()
848 ocfs2_journal_dirty(handle, di_bh); in ocfs2_write_zero_page()
849 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_write_zero_page()
856 if (handle) in ocfs2_write_zero_page()
857 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_write_zero_page()
1138 handle_t *handle = NULL; in ocfs2_setattr() local
1234 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1236 if (IS_ERR(handle)) { in ocfs2_setattr()
1237 status = PTR_ERR(handle); in ocfs2_setattr()
1245 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1246 if (IS_ERR(handle)) { in ocfs2_setattr()
1247 status = PTR_ERR(handle); in ocfs2_setattr()
1256 status = ocfs2_mark_inode_dirty(handle, inode, bh); in ocfs2_setattr()
1261 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1338 handle_t *handle; in __ocfs2_write_remove_suid() local
1346 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1347 if (IS_ERR(handle)) { in __ocfs2_write_remove_suid()
1348 ret = PTR_ERR(handle); in __ocfs2_write_remove_suid()
1353 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in __ocfs2_write_remove_suid()
1366 ocfs2_update_inode_fsync_trans(handle, inode, 0); in __ocfs2_write_remove_suid()
1368 ocfs2_journal_dirty(handle, bh); in __ocfs2_write_remove_suid()
1371 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1542 handle_t *handle; in ocfs2_zero_partial_clusters() local
1563 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1564 if (IS_ERR(handle)) { in ocfs2_zero_partial_clusters()
1565 ret = PTR_ERR(handle); in ocfs2_zero_partial_clusters()
1580 ret = ocfs2_zero_range_for_truncate(inode, handle, start, tmpend); in ocfs2_zero_partial_clusters()
1595 ret = ocfs2_zero_range_for_truncate(inode, handle, start, end); in ocfs2_zero_partial_clusters()
1599 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_zero_partial_clusters()
1601 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1861 handle_t *handle; in __ocfs2_change_file_space() local
1959 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
1960 if (IS_ERR(handle)) { in __ocfs2_change_file_space()
1961 ret = PTR_ERR(handle); in __ocfs2_change_file_space()
1970 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in __ocfs2_change_file_space()
1975 handle->h_sync = 1; in __ocfs2_change_file_space()
1977 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()