Lines Matching refs:handle

75 			      handle_t *handle,
86 handle_t *handle,
95 handle_t *handle,
244 handle_t *handle = NULL; in ocfs2_mknod() local
369 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, in ocfs2_mknod()
372 if (IS_ERR(handle)) { in ocfs2_mknod()
373 status = PTR_ERR(handle); in ocfs2_mknod()
374 handle = NULL; in ocfs2_mknod()
390 &new_fe_bh, parent_fe_bh, handle, in ocfs2_mknod()
398 status = ocfs2_fill_new_dir(osb, handle, dir, inode, in ocfs2_mknod()
405 status = ocfs2_journal_access_di(handle, INODE_CACHE(dir), in ocfs2_mknod()
413 ocfs2_journal_dirty(handle, parent_fe_bh); in ocfs2_mknod()
417 status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh, in ocfs2_mknod()
426 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, in ocfs2_mknod()
448 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_mknod()
462 if (handle) in ocfs2_mknod()
463 ocfs2_commit_trans(osb, handle); in ocfs2_mknod()
509 handle_t *handle, in __ocfs2_mknod_locked() argument
539 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in __ocfs2_mknod_locked()
590 ocfs2_journal_dirty(handle, *new_fe_bh); in __ocfs2_mknod_locked()
600 oi->i_sync_tid = handle->h_transaction->t_tid; in __ocfs2_mknod_locked()
601 oi->i_datasync_tid = handle->h_transaction->t_tid; in __ocfs2_mknod_locked()
622 handle_t *handle, in ocfs2_mknod_locked() argument
631 status = ocfs2_claim_new_inode(handle, dir, parent_fe_bh, in ocfs2_mknod_locked()
640 parent_fe_bh, handle, inode_ac, in ocfs2_mknod_locked()
644 int tmp = ocfs2_free_suballoc_bits(handle, inode_ac->ac_inode, in ocfs2_mknod_locked()
688 handle_t *handle; in ocfs2_link() local
782 handle = ocfs2_start_trans(osb, ocfs2_link_credits(osb->sb)); in ocfs2_link()
783 if (IS_ERR(handle)) { in ocfs2_link()
784 err = PTR_ERR(handle); in ocfs2_link()
785 handle = NULL; in ocfs2_link()
793 err = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_link()
805 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_link()
807 err = ocfs2_add_entry(handle, dentry, inode, in ocfs2_link()
827 ocfs2_commit_trans(osb, handle); in ocfs2_link()
890 handle_t *handle = NULL; in ocfs2_unlink() local
973 handle = ocfs2_start_trans(osb, ocfs2_unlink_credits(osb->sb)); in ocfs2_unlink()
974 if (IS_ERR(handle)) { in ocfs2_unlink()
975 status = PTR_ERR(handle); in ocfs2_unlink()
976 handle = NULL; in ocfs2_unlink()
981 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_unlink()
991 status = ocfs2_delete_entry(handle, dir, &lookup); in ocfs2_unlink()
1001 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_unlink()
1007 status = ocfs2_mark_inode_dirty(handle, dir, parent_node_bh); in ocfs2_unlink()
1016 status = ocfs2_orphan_add(osb, handle, inode, fe_bh, in ocfs2_unlink()
1023 if (handle) in ocfs2_unlink()
1024 ocfs2_commit_trans(osb, handle); in ocfs2_unlink()
1219 handle_t *handle = NULL; in ocfs2_rename() local
1486 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_rename()
1487 if (IS_ERR(handle)) { in ocfs2_rename()
1488 status = PTR_ERR(handle); in ocfs2_rename()
1489 handle = NULL; in ocfs2_rename()
1502 status = ocfs2_journal_access_di(handle, INODE_CACHE(new_inode), in ocfs2_rename()
1511 status = ocfs2_update_entry(new_dir, handle, &target_lookup_res, in ocfs2_rename()
1523 ocfs2_journal_dirty(handle, newfe_bh); in ocfs2_rename()
1525 status = ocfs2_orphan_add(osb, handle, new_inode, in ocfs2_rename()
1535 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
1543 status = ocfs2_journal_access_di(handle, INODE_CACHE(old_inode), in ocfs2_rename()
1551 ocfs2_journal_dirty(handle, old_inode_bh); in ocfs2_rename()
1575 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup); in ocfs2_rename()
1594 status = ocfs2_update_entry(old_inode, handle, in ocfs2_rename()
1605 ocfs2_mark_inode_dirty(handle, old_dir, old_dir_bh); in ocfs2_rename()
1608 ocfs2_mark_inode_dirty(handle, new_inode, newfe_bh); in ocfs2_rename()
1619 ocfs2_mark_inode_dirty(handle, new_dir, new_dir_bh); in ocfs2_rename()
1630 status = ocfs2_journal_access_di(handle, in ocfs2_rename()
1636 ocfs2_journal_dirty(handle, old_dir_bh); in ocfs2_rename()
1642 if (handle) in ocfs2_rename()
1643 ocfs2_commit_trans(osb, handle); in ocfs2_rename()
1692 handle_t *handle, in ocfs2_create_symlink_data() argument
1754 status = ocfs2_journal_access(handle, INODE_CACHE(inode), in ocfs2_create_symlink_data()
1768 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
1802 handle_t *handle = NULL; in ocfs2_symlink() local
1908 handle = ocfs2_start_trans(osb, credits + xattr_credits); in ocfs2_symlink()
1909 if (IS_ERR(handle)) { in ocfs2_symlink()
1910 status = PTR_ERR(handle); in ocfs2_symlink()
1911 handle = NULL; in ocfs2_symlink()
1931 0, &new_fe_bh, parent_fe_bh, handle, in ocfs2_symlink()
1953 handle, data_ac, NULL, in ocfs2_symlink()
1974 status = ocfs2_mark_inode_dirty(handle, inode, new_fe_bh); in ocfs2_symlink()
1981 status = ocfs2_create_symlink_data(osb, handle, inode, in ocfs2_symlink()
1990 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, in ocfs2_symlink()
2011 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_symlink()
2027 if (handle) in ocfs2_symlink()
2028 ocfs2_commit_trans(osb, handle); in ocfs2_symlink()
2220 handle_t *handle, in ocfs2_orphan_add() argument
2245 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_add()
2260 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_add()
2275 ocfs2_journal_dirty(handle, orphan_dir_bh); in ocfs2_orphan_add()
2277 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, in ocfs2_orphan_add()
2302 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_orphan_add()
2322 handle_t *handle, in ocfs2_orphan_del() argument
2365 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); in ocfs2_orphan_del()
2371 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_del()
2385 ocfs2_journal_dirty(handle, orphan_dir_bh); in ocfs2_orphan_del()
2498 handle_t *handle = NULL; in ocfs2_create_inode_in_orphan() local
2531 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0)); in ocfs2_create_inode_in_orphan()
2532 if (IS_ERR(handle)) { in ocfs2_create_inode_in_orphan()
2533 status = PTR_ERR(handle); in ocfs2_create_inode_in_orphan()
2534 handle = NULL; in ocfs2_create_inode_in_orphan()
2544 status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac, in ocfs2_create_inode_in_orphan()
2555 0, &new_di_bh, parent_di_bh, handle, in ocfs2_create_inode_in_orphan()
2564 status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name, in ocfs2_create_inode_in_orphan()
2580 if (handle) in ocfs2_create_inode_in_orphan()
2581 ocfs2_commit_trans(osb, handle); in ocfs2_create_inode_in_orphan()
2618 handle_t *handle = NULL; in ocfs2_add_inode_to_orphan() local
2657 handle = ocfs2_start_trans(osb, in ocfs2_add_inode_to_orphan()
2659 if (IS_ERR(handle)) { in ocfs2_add_inode_to_orphan()
2660 status = PTR_ERR(handle); in ocfs2_add_inode_to_orphan()
2664 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan()
2669 ocfs2_commit_trans(osb, handle); in ocfs2_add_inode_to_orphan()
2693 handle_t *handle = NULL; in ocfs2_del_inode_from_orphan() local
2714 handle = ocfs2_start_trans(osb, in ocfs2_del_inode_from_orphan()
2716 if (IS_ERR(handle)) { in ocfs2_del_inode_from_orphan()
2717 status = PTR_ERR(handle); in ocfs2_del_inode_from_orphan()
2723 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, in ocfs2_del_inode_from_orphan()
2730 status = ocfs2_journal_access_di(handle, in ocfs2_del_inode_from_orphan()
2743 status = ocfs2_set_inode_size(handle, inode, di_bh, end); in ocfs2_del_inode_from_orphan()
2747 ocfs2_journal_dirty(handle, di_bh); in ocfs2_del_inode_from_orphan()
2750 ocfs2_commit_trans(osb, handle); in ocfs2_del_inode_from_orphan()
2768 handle_t *handle = NULL; in ocfs2_mv_orphaned_inode_to_new() local
2834 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_mv_orphaned_inode_to_new()
2835 if (IS_ERR(handle)) { in ocfs2_mv_orphaned_inode_to_new()
2836 status = PTR_ERR(handle); in ocfs2_mv_orphaned_inode_to_new()
2837 handle = NULL; in ocfs2_mv_orphaned_inode_to_new()
2842 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in ocfs2_mv_orphaned_inode_to_new()
2849 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_mv_orphaned_inode_to_new()
2861 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_mv_orphaned_inode_to_new()
2862 ocfs2_journal_dirty(handle, di_bh); in ocfs2_mv_orphaned_inode_to_new()
2864 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_mv_orphaned_inode_to_new()
2882 ocfs2_commit_trans(osb, handle); in ocfs2_mv_orphaned_inode_to_new()