Lines Matching refs:handle

61 			      handle_t *handle,
72 handle_t *handle,
81 handle_t *handle,
232 handle_t *handle = NULL; in ocfs2_mknod() local
359 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, in ocfs2_mknod()
362 if (IS_ERR(handle)) { in ocfs2_mknod()
363 status = PTR_ERR(handle); in ocfs2_mknod()
364 handle = NULL; in ocfs2_mknod()
380 &new_fe_bh, parent_fe_bh, handle, in ocfs2_mknod()
389 status = ocfs2_fill_new_dir(osb, handle, dir, inode, in ocfs2_mknod()
396 status = ocfs2_journal_access_di(handle, INODE_CACHE(dir), in ocfs2_mknod()
404 ocfs2_journal_dirty(handle, parent_fe_bh); in ocfs2_mknod()
408 status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh, in ocfs2_mknod()
417 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, in ocfs2_mknod()
439 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_mknod()
460 if (handle) { in ocfs2_mknod()
463 ocfs2_commit_trans(osb, handle); in ocfs2_mknod()
510 handle_t *handle, in __ocfs2_mknod_locked() argument
541 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in __ocfs2_mknod_locked()
593 ocfs2_journal_dirty(handle, *new_fe_bh); in __ocfs2_mknod_locked()
603 ocfs2_update_inode_fsync_trans(handle, inode, 1); in __ocfs2_mknod_locked()
624 handle_t *handle, in ocfs2_mknod_locked() argument
633 status = ocfs2_claim_new_inode(handle, dir, parent_fe_bh, in ocfs2_mknod_locked()
642 parent_fe_bh, handle, inode_ac, in ocfs2_mknod_locked()
683 handle_t *handle; in ocfs2_link() local
777 handle = ocfs2_start_trans(osb, ocfs2_link_credits(osb->sb)); in ocfs2_link()
778 if (IS_ERR(handle)) { in ocfs2_link()
779 err = PTR_ERR(handle); in ocfs2_link()
780 handle = NULL; in ocfs2_link()
788 err = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_link()
800 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_link()
801 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_link()
803 err = ocfs2_add_entry(handle, dentry, inode, in ocfs2_link()
823 ocfs2_commit_trans(osb, handle); in ocfs2_link()
886 handle_t *handle = NULL; in ocfs2_unlink() local
969 handle = ocfs2_start_trans(osb, ocfs2_unlink_credits(osb->sb)); in ocfs2_unlink()
970 if (IS_ERR(handle)) { in ocfs2_unlink()
971 status = PTR_ERR(handle); in ocfs2_unlink()
972 handle = NULL; in ocfs2_unlink()
977 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh, in ocfs2_unlink()
987 status = ocfs2_delete_entry(handle, dir, &lookup); in ocfs2_unlink()
997 ocfs2_update_inode_fsync_trans(handle, inode, 0); in ocfs2_unlink()
998 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_unlink()
1004 status = ocfs2_mark_inode_dirty(handle, dir, parent_node_bh); in ocfs2_unlink()
1013 status = ocfs2_orphan_add(osb, handle, inode, fe_bh, in ocfs2_unlink()
1020 if (handle) in ocfs2_unlink()
1021 ocfs2_commit_trans(osb, handle); in ocfs2_unlink()
1218 handle_t *handle = NULL; in ocfs2_rename() local
1488 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_rename()
1489 if (IS_ERR(handle)) { in ocfs2_rename()
1490 status = PTR_ERR(handle); in ocfs2_rename()
1491 handle = NULL; in ocfs2_rename()
1504 status = ocfs2_journal_access_di(handle, INODE_CACHE(new_inode), in ocfs2_rename()
1513 status = ocfs2_update_entry(new_dir, handle, &target_lookup_res, in ocfs2_rename()
1525 ocfs2_journal_dirty(handle, newfe_bh); in ocfs2_rename()
1527 status = ocfs2_orphan_add(osb, handle, new_inode, in ocfs2_rename()
1537 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
1549 status = ocfs2_journal_access_di(handle, INODE_CACHE(old_inode), in ocfs2_rename()
1557 ocfs2_journal_dirty(handle, old_inode_bh); in ocfs2_rename()
1581 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup); in ocfs2_rename()
1600 status = ocfs2_update_entry(old_inode, handle, in ocfs2_rename()
1611 ocfs2_mark_inode_dirty(handle, old_dir, old_dir_bh); in ocfs2_rename()
1614 ocfs2_mark_inode_dirty(handle, new_inode, newfe_bh); in ocfs2_rename()
1626 ocfs2_mark_inode_dirty(handle, new_dir, new_dir_bh); in ocfs2_rename()
1637 status = ocfs2_journal_access_di(handle, in ocfs2_rename()
1643 ocfs2_journal_dirty(handle, old_dir_bh); in ocfs2_rename()
1649 if (handle) in ocfs2_rename()
1650 ocfs2_commit_trans(osb, handle); in ocfs2_rename()
1698 handle_t *handle, in ocfs2_create_symlink_data() argument
1760 status = ocfs2_journal_access(handle, INODE_CACHE(inode), in ocfs2_create_symlink_data()
1774 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
1809 handle_t *handle = NULL; in ocfs2_symlink() local
1916 handle = ocfs2_start_trans(osb, credits + xattr_credits); in ocfs2_symlink()
1917 if (IS_ERR(handle)) { in ocfs2_symlink()
1918 status = PTR_ERR(handle); in ocfs2_symlink()
1919 handle = NULL; in ocfs2_symlink()
1939 0, &new_fe_bh, parent_fe_bh, handle, in ocfs2_symlink()
1962 handle, data_ac, NULL, in ocfs2_symlink()
1983 status = ocfs2_mark_inode_dirty(handle, inode, new_fe_bh); in ocfs2_symlink()
1990 status = ocfs2_create_symlink_data(osb, handle, inode, in ocfs2_symlink()
1999 status = ocfs2_init_security_set(handle, inode, new_fe_bh, &si, in ocfs2_symlink()
2020 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_symlink()
2036 if (handle) { in ocfs2_symlink()
2039 ocfs2_commit_trans(osb, handle); in ocfs2_symlink()
2232 handle_t *handle, in ocfs2_orphan_add() argument
2257 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_add()
2272 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_add()
2287 ocfs2_journal_dirty(handle, orphan_dir_bh); in ocfs2_orphan_add()
2289 status = __ocfs2_add_entry(handle, orphan_dir_inode, name, in ocfs2_orphan_add()
2314 ocfs2_journal_dirty(handle, fe_bh); in ocfs2_orphan_add()
2334 handle_t *handle, in ocfs2_orphan_del() argument
2367 status = ocfs2_journal_access_di(handle, in ocfs2_orphan_del()
2385 status = ocfs2_delete_entry(handle, orphan_dir_inode, &lookup); in ocfs2_orphan_del()
2396 ocfs2_journal_dirty(handle, orphan_dir_bh); in ocfs2_orphan_del()
2508 handle_t *handle = NULL; in ocfs2_create_inode_in_orphan() local
2541 handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0)); in ocfs2_create_inode_in_orphan()
2542 if (IS_ERR(handle)) { in ocfs2_create_inode_in_orphan()
2543 status = PTR_ERR(handle); in ocfs2_create_inode_in_orphan()
2544 handle = NULL; in ocfs2_create_inode_in_orphan()
2554 status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac, in ocfs2_create_inode_in_orphan()
2565 0, &new_di_bh, parent_di_bh, handle, in ocfs2_create_inode_in_orphan()
2573 status = ocfs2_orphan_add(osb, handle, inode, new_di_bh, orphan_name, in ocfs2_create_inode_in_orphan()
2589 if (handle) in ocfs2_create_inode_in_orphan()
2590 ocfs2_commit_trans(osb, handle); in ocfs2_create_inode_in_orphan()
2627 handle_t *handle = NULL; in ocfs2_add_inode_to_orphan() local
2666 handle = ocfs2_start_trans(osb, in ocfs2_add_inode_to_orphan()
2668 if (IS_ERR(handle)) { in ocfs2_add_inode_to_orphan()
2669 status = PTR_ERR(handle); in ocfs2_add_inode_to_orphan()
2673 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan()
2678 ocfs2_commit_trans(osb, handle); in ocfs2_add_inode_to_orphan()
2702 handle_t *handle = NULL; in ocfs2_del_inode_from_orphan() local
2723 handle = ocfs2_start_trans(osb, in ocfs2_del_inode_from_orphan()
2725 if (IS_ERR(handle)) { in ocfs2_del_inode_from_orphan()
2726 status = PTR_ERR(handle); in ocfs2_del_inode_from_orphan()
2732 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, in ocfs2_del_inode_from_orphan()
2739 status = ocfs2_journal_access_di(handle, in ocfs2_del_inode_from_orphan()
2752 status = ocfs2_set_inode_size(handle, inode, di_bh, end); in ocfs2_del_inode_from_orphan()
2756 ocfs2_journal_dirty(handle, di_bh); in ocfs2_del_inode_from_orphan()
2759 ocfs2_commit_trans(osb, handle); in ocfs2_del_inode_from_orphan()
2777 handle_t *handle = NULL; in ocfs2_mv_orphaned_inode_to_new() local
2843 handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb)); in ocfs2_mv_orphaned_inode_to_new()
2844 if (IS_ERR(handle)) { in ocfs2_mv_orphaned_inode_to_new()
2845 status = PTR_ERR(handle); in ocfs2_mv_orphaned_inode_to_new()
2846 handle = NULL; in ocfs2_mv_orphaned_inode_to_new()
2851 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), in ocfs2_mv_orphaned_inode_to_new()
2858 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_mv_orphaned_inode_to_new()
2870 ocfs2_update_inode_fsync_trans(handle, inode, 1); in ocfs2_mv_orphaned_inode_to_new()
2871 ocfs2_journal_dirty(handle, di_bh); in ocfs2_mv_orphaned_inode_to_new()
2873 status = ocfs2_add_entry(handle, dentry, inode, in ocfs2_mv_orphaned_inode_to_new()
2891 ocfs2_commit_trans(osb, handle); in ocfs2_mv_orphaned_inode_to_new()