Lines Matching refs:handle
75 handle_t *handle,
86 handle_t *handle,
95 handle_t *handle,
242 handle_t *handle = NULL; in ocfs2_mknod() local
362 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, in ocfs2_mknod()
365 if (IS_ERR(handle)) { in ocfs2_mknod()
366 status = PTR_ERR(handle); in ocfs2_mknod()
367 handle = NULL; in ocfs2_mknod()
383 &new_fe_bh, parent_fe_bh, handle, in ocfs2_mknod()
391 status = ocfs2_fill_new_dir(osb, handle, dir, inode, in ocfs2_mknod()
398 status = ocfs2_journal_access_di(handle, INODE_CACHE(dir), in ocfs2_mknod()
406 ocfs2_journal_dirty(handle, parent_fe_bh); in ocfs2_mknod()
410 status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh, in ocfs2_mknod()
419 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, in ocfs2_mknod()
441 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_mknod()
455 if (handle) in ocfs2_mknod()
456 ocfs2_commit_trans(osb, handle); in ocfs2_mknod()
502 handle_t *handle, in __ocfs2_mknod_locked() argument
532 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in __ocfs2_mknod_locked()
583 ocfs2_journal_dirty(handle, *new_fe_bh); in __ocfs2_mknod_locked()
593 oi->i_sync_tid = handle->h_transaction->t_tid; in __ocfs2_mknod_locked()
594 oi->i_datasync_tid = handle->h_transaction->t_tid; in __ocfs2_mknod_locked()
615 handle_t *handle, in ocfs2_mknod_locked() argument
624 status = ocfs2_claim_new_inode(handle, dir, parent_fe_bh, in ocfs2_mknod_locked()
633 parent_fe_bh, handle, inode_ac, in ocfs2_mknod_locked()
672 handle_t *handle; in ocfs2_link() local
762 handle = ocfs2_start_trans(osb, ocfs2_link_credits(osb->sb)); in ocfs2_link()
763 if (IS_ERR(handle)) { in ocfs2_link()
764 err = PTR_ERR(handle); in ocfs2_link()
765 handle = NULL; in ocfs2_link()
773 err = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_link()
785 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_link()
787 err = ocfs2_add_entry(handle, dentry, inode, in ocfs2_link()
807 ocfs2_commit_trans(osb, handle); in ocfs2_link()
870 handle_t *handle = NULL; in ocfs2_unlink() local
949 handle = ocfs2_start_trans(osb, ocfs2_unlink_credits(osb->sb)); in ocfs2_unlink()
950 if (IS_ERR(handle)) { in ocfs2_unlink()
951 status = PTR_ERR(handle); in ocfs2_unlink()
952 handle = NULL; in ocfs2_unlink()
957 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_unlink()
967 status = ocfs2_delete_entry(handle, dir, &lookup); in ocfs2_unlink()
977 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_unlink()
983 status = ocfs2_mark_inode_dirty(handle, dir, parent_node_bh); in ocfs2_unlink()
992 status = ocfs2_orphan_add(osb, handle, inode, fe_bh, in ocfs2_unlink()
999 if (handle) in ocfs2_unlink()
1000 ocfs2_commit_trans(osb, handle); in ocfs2_unlink()
1202 handle_t *handle = NULL; in ocfs2_rename() local
1456 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_rename()
1457 if (IS_ERR(handle)) { in ocfs2_rename()
1458 status = PTR_ERR(handle); in ocfs2_rename()
1459 handle = NULL; in ocfs2_rename()
1472 status = ocfs2_journal_access_di(handle, INODE_CACHE(new_inode), in ocfs2_rename()
1481 status = ocfs2_update_entry(new_dir, handle, &target_lookup_res, in ocfs2_rename()
1493 ocfs2_journal_dirty(handle, newfe_bh); in ocfs2_rename()
1495 status = ocfs2_orphan_add(osb, handle, new_inode, in ocfs2_rename()
1505 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
1513 status = ocfs2_journal_access_di(handle, INODE_CACHE(old_inode), in ocfs2_rename()
1521 ocfs2_journal_dirty(handle, old_inode_bh); in ocfs2_rename()
1538 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup); in ocfs2_rename()
1551 status = ocfs2_update_entry(old_inode, handle, in ocfs2_rename()
1562 ocfs2_mark_inode_dirty(handle, old_dir, old_dir_bh); in ocfs2_rename()
1565 ocfs2_mark_inode_dirty(handle, new_inode, newfe_bh); in ocfs2_rename()
1576 ocfs2_mark_inode_dirty(handle, new_dir, new_dir_bh); in ocfs2_rename()
1587 status = ocfs2_journal_access_di(handle, in ocfs2_rename()
1593 ocfs2_journal_dirty(handle, old_dir_bh); in ocfs2_rename()
1602 if (handle) in ocfs2_rename()
1603 ocfs2_commit_trans(osb, handle); in ocfs2_rename()
1649 handle_t *handle, in ocfs2_create_symlink_data() argument
1711 status = ocfs2_journal_access(handle, INODE_CACHE(inode), in ocfs2_create_symlink_data()
1725 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
1759 handle_t *handle = NULL; in ocfs2_symlink() local
1860 handle = ocfs2_start_trans(osb, credits + xattr_credits); in ocfs2_symlink()
1861 if (IS_ERR(handle)) { in ocfs2_symlink()
1862 status = PTR_ERR(handle); in ocfs2_symlink()
1863 handle = NULL; in ocfs2_symlink()
1883 0, &new_fe_bh, parent_fe_bh, handle, in ocfs2_symlink()
1905 handle, data_ac, NULL, in ocfs2_symlink()
1926 status = ocfs2_mark_inode_dirty(handle, inode, new_fe_bh); in ocfs2_symlink()
1933 status = ocfs2_create_symlink_data(osb, handle, inode, in ocfs2_symlink()
1942 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, in ocfs2_symlink()
1963 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_symlink()
1979 if (handle) in ocfs2_symlink()
1980 ocfs2_commit_trans(osb, handle); in ocfs2_symlink()
2172 handle_t *handle, in ocfs2_orphan_add() argument
2197 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_add()
2212 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_add()
2227 ocfs2_journal_dirty(handle, orphan_dir_bh); in ocfs2_orphan_add()
2229 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, in ocfs2_orphan_add()
2254 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_orphan_add()
2274 handle_t *handle, in ocfs2_orphan_del() argument
2317 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); in ocfs2_orphan_del()
2323 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_del()
2337 ocfs2_journal_dirty(handle, orphan_dir_bh); in ocfs2_orphan_del()
2450 handle_t *handle = NULL; in ocfs2_create_inode_in_orphan() local
2482 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0)); in ocfs2_create_inode_in_orphan()
2483 if (IS_ERR(handle)) { in ocfs2_create_inode_in_orphan()
2484 status = PTR_ERR(handle); in ocfs2_create_inode_in_orphan()
2485 handle = NULL; in ocfs2_create_inode_in_orphan()
2495 status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac, in ocfs2_create_inode_in_orphan()
2506 0, &new_di_bh, parent_di_bh, handle, in ocfs2_create_inode_in_orphan()
2515 status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name, in ocfs2_create_inode_in_orphan()
2531 if (handle) in ocfs2_create_inode_in_orphan()
2532 ocfs2_commit_trans(osb, handle); in ocfs2_create_inode_in_orphan()
2590 handle_t *handle = NULL; in ocfs2_add_inode_to_orphan() local
2624 handle = ocfs2_start_trans(osb, in ocfs2_add_inode_to_orphan()
2626 if (IS_ERR(handle)) { in ocfs2_add_inode_to_orphan()
2627 status = PTR_ERR(handle); in ocfs2_add_inode_to_orphan()
2631 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan()
2636 ocfs2_commit_trans(osb, handle); in ocfs2_add_inode_to_orphan()
2661 handle_t *handle = NULL; in ocfs2_del_inode_from_orphan() local
2689 handle = ocfs2_start_trans(osb, in ocfs2_del_inode_from_orphan()
2691 if (IS_ERR(handle)) { in ocfs2_del_inode_from_orphan()
2692 status = PTR_ERR(handle); in ocfs2_del_inode_from_orphan()
2698 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, in ocfs2_del_inode_from_orphan()
2705 status = ocfs2_journal_access_di(handle, in ocfs2_del_inode_from_orphan()
2718 status = ocfs2_set_inode_size(handle, inode, di_bh, end); in ocfs2_del_inode_from_orphan()
2722 ocfs2_journal_dirty(handle, di_bh); in ocfs2_del_inode_from_orphan()
2725 ocfs2_commit_trans(osb, handle); in ocfs2_del_inode_from_orphan()
2747 handle_t *handle = NULL; in ocfs2_mv_orphaned_inode_to_new() local
2813 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_mv_orphaned_inode_to_new()
2814 if (IS_ERR(handle)) { in ocfs2_mv_orphaned_inode_to_new()
2815 status = PTR_ERR(handle); in ocfs2_mv_orphaned_inode_to_new()
2816 handle = NULL; in ocfs2_mv_orphaned_inode_to_new()
2821 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in ocfs2_mv_orphaned_inode_to_new()
2828 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_mv_orphaned_inode_to_new()
2840 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_mv_orphaned_inode_to_new()
2841 ocfs2_journal_dirty(handle, di_bh); in ocfs2_mv_orphaned_inode_to_new()
2843 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_mv_orphaned_inode_to_new()
2861 ocfs2_commit_trans(osb, handle); in ocfs2_mv_orphaned_inode_to_new()